Re: [NTG-context] Problem with font mapping
Mika Ritola wrote: In other words, the mappings seem to be fine here (though I'm not sure about the first one). Thus, it seems that some change in ConTeXt has broken the font. 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 Do you mean the database that's generated by mtxrun --script font --reload? Updating it didn't solve the problem. the analyser has been rewritten and now let's the familyname + weight play a more important role and if there's something weird in there ... in that case the (undefined) order of hashing kicks in anyhow, i cannot check it here without fonts so someone has to buy me the adobe font collection first -) Hans - 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 - ___ 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 ___
Re: [NTG-context] Problem with font mapping
Am 25.11.2009 um 16:27 schrieb Mika Ritola: 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. A few things have changed in ConTeXt font mechanism and I'm going to adapt simplefonts to the new code (will take a while) but there are now many new features available, take for example the new spec-interface which could be used to write this: \starttypescript[Xserif][all][name] \definefontsynonym [Serif] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=default] \definefontsynonym [SerifItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [SerifSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [SerifBold] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-normal] [features=default] \definefontsynonym [SerifBoldItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [SerifBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [SerifCaps] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=smallcaps] \stoptypescript \starttypescript[Xsans][all][name] \definefontsynonym [Sans] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=default] \definefontsynonym [SansItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [SansSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [SansBold] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-normal] [features=default] \definefontsynonym [SansBoldItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [SansBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [SansCaps] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=smallcaps] \stoptypescript \starttypescript[Xmono][all][name] \definefontsynonym [Mono] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=default] \definefontsynonym [MonoItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [MonoSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [MonoBold] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-normal] [features=default] \definefontsynonym [MonoBoldItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [MonoBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [MonoCaps] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=smallcaps] \stoptypescript \starttypescript[Xserif][default][size] \definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt] [rm] [default] \stoptypescript \starttypescript[Xsans][default][size] \definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt] [ss] [default] \stoptypescript \starttypescript [Xmono][default][size] \definebodyfont [4pt,5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,14.4pt,17.3pt] [tt] [default] \stoptypescript \starttypescript[Xserif][dtp][size] \definebodyfont [5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt] [rm] [default] \stoptypescript \starttypescript[Xsans][dtp][size] \definebodyfont [5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt] [ss] [default] \stoptypescript \starttypescript[Xmono][dtp][size] \definebodyfont [5pt,6pt,7pt,8pt,9pt,10pt,11pt,12pt,13pt,14pt,16pt,18pt,22pt,28pt] [tt] [default] \stoptypescript % this is the relevant
Re: [NTG-context] Problem with font mapping
Wolfgang Schuster wrote: Am 25.11.2009 um 16:27 schrieb Mika Ritola: 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. A few things have changed in ConTeXt font mechanism and I'm going to adapt simplefonts to the new code (will take a while) but there are now many new features available, take for example the new spec-interface which could be used to write this: \starttypescript[Xserif][all][name] \definefontsynonym [Serif] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=default] \definefontsynonym [SerifItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [SerifSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-italic] [features=default] \definefontsynonym [SerifBold] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-normal] [features=default] \definefontsynonym [SerifBoldItalic] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [SerifBoldSlanted] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-bold-italic] [features=default] \definefontsynonym [SerifCaps] [spec:\ctxlua{tex.sprint(string.lower(string.gsub(\typescripttwo,[^a-zA-Z0-9],)))}-normal-normal] [features=smallcaps] \stoptypescript \definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname(\typescripttwo}-normal-normal][features=default] I'll add \cleanfontname so that we can have \definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default] Hans - 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 - ___ 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 ___
Re: [NTG-context] Problem with font mapping
Am 26.11.2009 um 16:01 schrieb Hans Hagen: \definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname(\typescripttwo}-normal-normal][features=default] I'll add \cleanfontname so that we can have \definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default] Can't you just add the Xserif/sans/mono typescript for MkIV to the core (type-lua.tex?), they are such a nice example how to use the new spec-interface for fonts. Wolfgang ___ 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 ___
Re: [NTG-context] Problem with font mapping
Wolfgang Schuster wrote: Am 26.11.2009 um 16:01 schrieb Hans Hagen: \definefontsynonym[Serif][spec:\ctxlua{fonts.names.cleanname(\typescripttwo}-normal-normal][features=default] I'll add \cleanfontname so that we can have \definefontsynonym[Serif][spec:\cleanfontname\typescripttwo-normal-normal][features=default] Can't you just add the Xserif/sans/mono typescript for MkIV to the core (type-lua.tex?), they are such a nice example how to use the new spec-interface for fonts. sure, - 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 - ___ 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 ___
[NTG-context] Problem with font mapping
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 As you can see, agaramond... are mapped properly while adobegaramond... are mapped wrong. 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. I'm running ConTeXt version 2009.11.24 10:13. Mika ___ 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 ___
Re: [NTG-context] Problem with font mapping
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 - ___ 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 ___
Re: [NTG-context] Problem with font mapping
2009/11/25 Hans Hagen pra...@wxs.nl 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 I downgraded to the current (2009.10.27 16:35) version of ConTeXt to see if the mappings are different, and this is the result: adobegaramondpro = Adobe Garamond Pro Bold = AGaramondPro-Bold.otf adobegaramondprobold = Adobe Garamond Pro Bold = AGaramondPro-Bold.otf adobegaramondprobolditalic = Adobe Garamond Pro Bold Italic = AGaramondPro-BoldItalic.otf adobegaramondproitalic = Adobe Garamond Pro Italic = AGaramondPro-Italic.otf adobegaramondproregular = Adobe Garamond Pro Regular = AGaramondPro-Regular.otf adobegaramondprosemibold = Adobe Garamond Pro Semibold = AGaramondPro-Semibold.otf adobegaramondprosemibolditalic = Adobe Garamond Pro Semibold Italic = AGaramondPro-SemiboldItalic.otf agaramondprobold = AGaramondPro-Bold = AGaramondPro-Bold.otf agaramondprobolditalic = AGaramondPro-BoldItalic = AGaramondPro-BoldItalic.otf agaramondproitalic = AGaramondPro-Italic = AGaramondPro-Italic.otf agaramondproregular = AGaramondPro-Regular = AGaramondPro-Regular.otf agaramondprosemibold = AGaramondPro-Semibold = AGaramondPro-Semibold.otf agaramondprosemibolditalic = AGaramondPro-SemiboldItalic = AGaramondPro-SemiboldItalic.otf In other words, the mappings seem to be fine here (though I'm not sure about the first one). Thus, it seems that some change in ConTeXt has broken the font. 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 Do you mean the database that's generated by mtxrun --script font --reload? Updating it didn't solve the problem. Mika ___ 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 ___