* new interface to simplefonts @ 2014-01-22 20:22 Pablo Rodriguez 2014-01-22 21:49 ` Wolfgang Schuster 0 siblings, 1 reply; 4+ messages in thread From: Pablo Rodriguez @ 2014-01-22 20:22 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: new interface to simplefonts 2014-01-22 20:22 new interface to simplefonts Pablo Rodriguez @ 2014-01-22 21:49 ` Wolfgang Schuster 2014-01-23 1:06 ` Hans Hagen 0 siblings, 1 reply; 4+ messages in thread From: Wolfgang Schuster @ 2014-01-22 21:49 UTC (permalink / raw) To: mailing list for ConTeXt users; +Cc: Hans Hagen [-- Attachment #1.1: Type: text/plain, Size: 3156 bytes --] 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 <oinos@gmx.es> wrote: 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ [-- Attachment #1.2: Type: text/html, Size: 4679 bytes --] [-- Attachment #2: Type: text/plain, Size: 485 bytes --] ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: new interface to simplefonts 2014-01-22 21:49 ` Wolfgang Schuster @ 2014-01-23 1:06 ` Hans Hagen 2014-01-23 7:31 ` Pablo Rodriguez 0 siblings, 1 reply; 4+ messages in thread From: Hans Hagen @ 2014-01-23 1:06 UTC (permalink / raw) To: Wolfgang Schuster, mailing list for ConTeXt users 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: new interface to simplefonts 2014-01-23 1:06 ` Hans Hagen @ 2014-01-23 7:31 ` Pablo Rodriguez 0 siblings, 0 replies; 4+ messages in thread From: Pablo Rodriguez @ 2014-01-23 7:31 UTC (permalink / raw) To: mailing list for ConTeXt users 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 ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2014-01-23 7:31 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2014-01-22 20:22 new interface to simplefonts Pablo Rodriguez 2014-01-22 21:49 ` Wolfgang Schuster 2014-01-23 1:06 ` Hans Hagen 2014-01-23 7:31 ` Pablo Rodriguez
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).