Say I want to use the Adobe Source font family in my document. They are installed on my system, but the file names are different to what’s in the typescript file provided with the ConTeXt distribution. If I do this: \starttypescript [serif] [source] [name] \definefontsynonym [Serif] [file:SourceSerif4-Regular] [features=default] \definefontsynonym [SerifItalic] [file:SourceSerif4-It] [features=default] \definefontsynonym [SerifBold] [file:SourceSerif4-Bold] [features=default] \definefontsynonym [SerifBoldItalic] [file:SourceSerif4-BoldIt] [features=default] \stoptypescript \setupbodyfont[source] \starttext I want this text to be typeset in Adobe Source Serif. \stoptext Then I get what I want. The question is: can I move the \start/stoptypescript code into its own typescript file that would somehow refer to the official one and override only what’s needed? Or is the only solution to just copy the whole file and tweak what I need? I found some thread in the mailing list archive relating to this but it’s more than 15 years old. Maybe things have changed since then. Thanks, Vincent
On 8/11/2023 6:19 PM, Vincent Hennebert wrote:
Say I want to use the Adobe Source font family in my document. They are installed on my system, but the file names are different to what’s in the typescript file provided with the ConTeXt distribution. If I do this:
\starttypescript [serif] [source] [name] \definefontsynonym [Serif] [file:SourceSerif4-Regular] [features=default] \definefontsynonym [SerifItalic] [file:SourceSerif4-It] [features=default] \definefontsynonym [SerifBold] [file:SourceSerif4-Bold] [features=default] \definefontsynonym [SerifBoldItalic] [file:SourceSerif4-BoldIt] [features=default] \stoptypescript \setupbodyfont[source] \starttext I want this text to be typeset in Adobe Source Serif. \stoptext
Then I get what I want. The question is: can I move the \start/stoptypescript code into its own typescript file that would somehow refer to the official one and override only what’s needed? Or is the only solution to just copy the whole file and tweak what I need?
I found some thread in the mailing list archive relating to this but it’s more than 15 years old. Maybe things have changed since then. Here is a cheat:
\definefontfile[file:SourceSerifPro-Regular][file:SourceSerif4-Regular] before you enable the bodyfont (can be in your document style). Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Vincent Hennebert