This is a context bug which was probably introduced with the recent optimization/speedup for the generation of the font database. As a result of this the following fields in the database (which are needed for simplefonts) are no longer available:
- designsize
- maxsize
- minsize
- pfmweight
- pfmwidth
Also some fonts like “Latin Modern Roman” can’t be loaded anymore because the font is no saved as
{
["cleanfilename"]="lmroman10regular",
["familyname"]="lmroman10",
["filename"]="lmroman10-regular.otf",
["fontname"]="lmroman10regular",
["fontweight"]="book",
["format"]="otf",
["fullname"]="lmroman10regular",
["modification"]=1254935040,
["rawname"]="LMRoman10-Regular",
["style"]="normal",
["variant"]="normal",
["weight"]="normal",
["width"]="normal",
},
but in an older version of the database the entry for the font looked like this:
{
["cleanfilename"]="lmroman10regular",
["designsize"]=100,
["familyname"]="latinmodernroman",
["filename"]="lmroman10-regular.otf",
["fontname"]="lmroman10regular",
["format"]="otf",
["fullname"]="lmroman10regular",
["maxsize"]=110,
["minsize"]=95,
["modification"]=1254935040,
["modifiers"]="10regular",
["pfmweight"]=400,
["pfmwidth"]=5,
["rawname"]="LMRoman10-Regular",
["style"]="normal",
["subfamily"]="regular",
["variant"]="normal",
["weight"]="normal",
["width"]="normal",
},
When you’re in a hurry and can’t wait for this to be fixed you can switch to an alternative search method of the fontfamily commands but the results can be differ from the default method.
Pablo -- http://www.ousia.tk ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki!