Re: [NTG-context] simplefonts vs typescripts
I am still not able to set up the Noto fonts due mostly to sketchy/lack-of documentation on setting up ConTeXt fonts.
I understand I need to set up typescripts but do not understand the syntax and/or semantics of the different commands and how to map the font names/paths (otf and ttf files) to reference them in the typescripts. I would like to create a utility that will create the typescript file for MKIV from the otf/ttf files themselves.
Please provide me with any help/documentation.
Thanks.
David Boerschlein
(214) 412-3275 home office land
(585) 278-4687 cell
www.linkedin.com/in/davidboerschlein
---------- Original Message ----------
From: "david.boerschlein@juno.com"
Am 13.05.2015 um 18:09 schrieb david.boerschlein@juno.com:
I am still not able to set up the Noto fonts due mostly to sketchy/lack-of documentation on setting up ConTeXt fonts.
I understand I need to set up typescripts but do not understand the syntax and/or semantics of the different commands and how to map the font names/paths (otf and ttf files) to reference them in the typescripts. I would like to create a utility that will create the typescript file for MKIV from the otf/ttf files themselves.
You don’t have to write a typescript to use the fonts when you use the \definefontfamily command. When you use Windows or Mac OS on your Computer you can put the files in the normal font folder and update the font database with “mtxrun —script font —reload”. After wards the following font setuos in your document is enough to use Noto Serif and Sans. When you use Linux you can either put the font files in your local TeX directory or set the OSFONTDIR variable before you update the font database. \definefontfamily [noto] [rm] [Noto Serif] \definefontfamily [noto] [ss] [Noto Sans] \definefontfamily [noto] [mm] [TeX Gyre Pagella Math] \setupbodyfont[noto] \starttext \rm Noto Serif {\it Italic} and {\bf Bold} \ss Noto Sans {\it Italic} and {\bf Bold} \stoptext Wolfgang
On 5/13/2015 6:09 PM, david.boerschlein@juno.com wrote:
I am still not able to set up the Noto fonts due mostly to sketchy/lack-of documentation on setting up ConTeXt fonts.
I understand I need to set up typescripts but do not understand the syntax and/or semantics of the different commands and how to map the font names/paths (otf and ttf files) to reference them in the typescripts. I would like to create a utility that will create the typescript file for MKIV from the otf/ttf files themselves.
Please provide me with any help/documentation.
In addition to wolfgangs mail: there is not much science involved in typescripts, just take another type-imp-*.mkiv file as example ... type-imp-noto.mkiv : \starttypescriptcollection[noto] \starttypescript [serif] [noto] [name] \setups[font:fallback:serif] \definefontsynonym [Serif] [file:notowhatever.ttf] [features=default] \definefontsynonym [SerifBold] [file:notowhateverbold.ttf] [features=default] \definefontsynonym [SerifItalic] [file:notowhateveritalic.ttf] [features=default] \definefontsynonym [SerifBoldItalic] [file:notowhateverbolditalic.ttf] [features=default] \stoptypescript \starttypescript[noto] \definetypeface [noto] [rm] [serif] [noto] [default] \definetypeface [noto] [ss] [sans] [dejavu] [default] \definetypeface [noto] [tt] [mono] [dejavu] [default] \definetypeface [noto] [mm] [math] [times] [default] \stoptypescript \stoptypescriptcollection \setupbodyfont[noto] You need to figure out the right filenames yourself (not that hard as you downloaded them I assume). But simplefonts is less lines of code and you only need such a typescript if you want to have long term guarantees (as it depends less on heuristics) ----------------------------------------------------------------- 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 -----------------------------------------------------------------
participants (3)
-
david.boerschlein@juno.com
-
Hans Hagen
-
Wolfgang Schuster