Mika Ritola wrote:
Hello again,
I seem to be running into all sorts of font problems. Now my document has suddenly turned bold. For example, running the following code results in "Test." being rendered in bold characters.
\usemodule[simplefonts] \setmainfont[Adobe Garamond Pro]
\starttext Test. \stoptext
Running "mtxrun --script font --list --pattern="*Garamond*" --all" reveals that there's something fishy about the font mapping:
adobegaramondpro => agaramondprosemibold => AGaramondPro-Semibold.otf adobegaramondprobold => agaramondprosemibold => AGaramondPro-Semibold.otf adobegaramondprobolditalic => agaramondprosemibolditalic => AGaramondPro-SemiboldItalic.otf adobegaramondproitalic => agaramondprobolditalic => AGaramondPro-BoldItalic.otf adobegaramondpronormal => agaramondproregular => AGaramondPro-Regular.otf adobegaramondproregular => agaramondprobold => AGaramondPro-Bold.otf adobegaramondprosemibold => agaramondprosemibold => AGaramondPro-Semibold.otf agaramondprobold => agaramondprobold => AGaramondPro-Bold.otf agaramondprobolditalic => agaramondprobolditalic => AGaramondPro-BoldItalic.otf agaramondproitalic => agaramondproitalic => AGaramondPro-Italic.otf agaramondproregular => agaramondproregular => AGaramondPro-Regular.otf agaramondprosemibold => agaramondprosemibold => AGaramondPro-Semibold.otf agaramondprosemibolditalic => agaramondprosemibolditalic => AGaramondPro-SemiboldItalic.otf
i cannot check it as i have no adobe garamond
As you can see, agaramond... are mapped properly while adobegaramond... are mapped wrong.
it all depends in what info is in the font ... familyname, weight etc and sometimes it's contradicting
Changing \setmainfont[Adobe Garamond Pro] to \setmainfont[agaramondpro] fixes the issue but, still, I'd prefer to use the former (as I've done until now) since it's clearer.
how recent is your version of mtxrun / mtx-font / font database? it has been a bit in flux last weeks ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------