From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Hans Hagen <pragma@wxs.nl>
Subject: Re: new interface to simplefonts
Date: Wed, 22 Jan 2014 22:49:06 +0100 [thread overview]
Message-ID: <50064cda-61b5-41ef-ae5f-4383b232afcc@keima.localdomain> (raw)
In-Reply-To: <52E02880.10304@gmx.es>
[-- 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
___________________________________________________________________________________
next prev parent reply other threads:[~2014-01-22 21:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-22 20:22 Pablo Rodriguez
2014-01-22 21:49 ` Wolfgang Schuster [this message]
2014-01-23 1:06 ` Hans Hagen
2014-01-23 7:31 ` Pablo Rodriguez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50064cda-61b5-41ef-ae5f-4383b232afcc@keima.localdomain \
--to=schuster.wolfgang@gmail.com \
--cc=ntg-context@ntg.nl \
--cc=pragma@wxs.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).