Using lualatex on latest TeXLive 2012 I am not able to select Libertine Mono by its full name via fontspec. luaotfload is finding the font and it is written into ~/.texlive2012/texmf-var/luatex-cache/generic/names/otfl-names.lua
However I am able to select the different styles by their psname like LinLibertineMO
. Is there something wrong with the font itself or am I doing something wrong?
edit: As requestet a working example.
\documentclass{scrartcl}
\usepackage[english]{babel}
\usepackage{fontspec}
\usepackage{blindtext}
\setmainfont{Linux Libertine O}
\setsansfont{Linux Biolinum O}
% \setmonofont{Linux Libertine Mono O}
\begin{document}
\blindtext
\end{document}
Uncommenting setmonofont
leads to not working:
! fontspec error: "font-not-found"
!
! The font "LinuxLibertineMonoO" cannot be found.
!
! See the fontspec documentation for further information.
Here’s an excerpt from ~/.texlive2012/texmf-var/luatex-cache/generic/names/otfl-names.lua
{
["familyname"]="Linux Libertine Mono O",
["filename"]={ "LinLibertine_M.otf", false },
["fontname"]="LinLibertineMO",
["fullname"]="Linux Libertine Mono O",
["names"]={
["family"]="Linux Libertine Mono O",
["fullname"]="Linux Libertine Mono O",
["psname"]="LinLibertineMO",
["subfamily"]="Mono",
},
otfl-font-nms.lua
and test again? It would appear that Libertine Mono has a quirk wrt to subfamily designation.otfinfo -i
on the font file to list possible identifiers. The safe bet is almost always on what the field Postscript name says (“LinLibertineMO” in this case).