Dear list, using the latest beta from today (ConTeXt - 2014.01.22 01:31) in Linux 32-bit, I cannot get the new simplefonts working. Here is the sample: \definefallbackfamily [mainface] [serif] [DejaVu Serif] [range={greek,extendedgreek},force=yes] \definefontfamily [mainface] [serif] [TeX Gyre Pagella] \setupbodyfont[mainface] \starttext \input knuth χαλεπὰ τὰ καλά \stoptext But I only get the font LatinModernMath-Regular. Am I missing something or is this a bug? Many thanks for your help, Pablo -- http://www.ousia.tk
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.
\definefallbackfamily [mainface] [serif] [DejaVu Serif] [alternative=simplefonts,preset=range:greek]
\definefontfamily [mainface] [serif] [TeX Gyre Pagella] [alternative=simplefonts]
\setupbodyfont[mainface]
\starttext
\input knuth
χαλεπὰ τὰ καλά
\stoptext
Wolfgang
On 22.01.2014 21:22:24, Pablo Rodriguez
On 1/22/2014 10:49 PM, Wolfgang Schuster wrote:
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
indeed these are missing (in fact they are zero) ... we can get pfm* back but designsize etc will not be part of the fontloader.info method as it involves too much loading (instead one can do a normal open) so, we fix that part of luatex and in context will use the more complete loading method (which is efficient enough for our purpose) (new beta) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
On 01/23/2014 02:06 AM, Hans Hagen wrote:
On 1/22/2014 10:49 PM, Wolfgang Schuster wrote:
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
indeed these are missing (in fact they are zero) ... we can get pfm* back but designsize etc will not be part of the fontloader.info method as it involves too much loading (instead one can do a normal open)
so, we fix that part of luatex and in context will use the more complete loading method (which is efficient enough for our purpose)
(new beta)
Many thanks for the quick fix, Hans. Pablo -- http://www.ousia.tk
participants (3)
-
Hans Hagen
-
Pablo Rodriguez
-
Wolfgang Schuster