Hello, i have made a typescript which works. the only thing is that i have in my typescript something like: \startsetups [fallbackfonts] … \stopsetups \starttypescript [bla] \setups[fallbackfonts] … \stoptypescript referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts). When i do: \input Mytypescript in the document all works as expected. So my question is how can i load setups with \usetypescriptfile Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help. best regards Bernhard
Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
Hello,
i have made a typescript which works. the only thing is that i have in my typescript something like:
\startsetups [fallbackfonts] … \stopsetups
\starttypescript [bla] \setups[fallbackfonts] … \stoptypescript
referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts). When i do:
\input Mytypescript
in the document all works as expected. So my question is how can i load setups with \usetypescriptfile Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
Can you show use your typescripts and the setups for the fallback fonts. Wolfgang
ok i have boiled it down as minimal as possible (2 files in attachment). I have commented out line 123 in my typescript: %\definefontsynonym[SansSubhead-SemiBold] [file:CronosPro-SemiboldSubh] [features=default] so according to my \startsetups[font:optical:sans:fallback] (line 3 in typescript) it should do: \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] (line 60 typescript) but it doesn´t. the line \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] in my document restores the wanted behaviour. So \startsetups … \stopsetups don´t get loaded from the \usetypescriptfile command. i hope i have made it clear what i mean. best regards Bernhard Am 30.05.2010 um 10:51 schrieb Wolfgang Schuster:
Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
Hello,
i have made a typescript which works. the only thing is that i have in my typescript something like:
\startsetups [fallbackfonts] … \stopsetups
\starttypescript [bla] \setups[fallbackfonts] … \stoptypescript
referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts). When i do:
\input Mytypescript
in the document all works as expected. So my question is how can i load setups with \usetypescriptfile Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
Can you show use your typescripts and the setups for the fallback 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 ___________________________________________________________________________________
Am 30.05.2010 um 10:51 schrieb Wolfgang Schuster:
Am 30.05.10 10:18, schrieb Bernhard Rosensteiner:
Hello,
i have made a typescript which works. the only thing is that i have in my typescript something like:
\startsetups [fallbackfonts] … \stopsetups
\starttypescript [bla] \setups[fallbackfonts] … \stoptypescript
referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts). When i do:
\input Mytypescript
in the document all works as expected. So my question is how can i load setups with \usetypescriptfile Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
Can you show use your typescripts and the setups for the fallback fonts.
second try (i think i have something messed up with the email format…): ok i have boiled it down as minimal as possible (2 files in attachment). I have commented out line 123 in my typescript: %\definefontsynonym[SansSubhead-SemiBold] [file:CronosPro-SemiboldSubh] [features=default] so according to my \startsetups[font:optical:sans:fallback] (line 3 in typescript) it should do: \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] (line 60 typescript) but it doesn´t. the line \definefontsynonym[SansSubhead-SemiBold] [SansSubhead-Bold] in my document restores the wanted behaviour. So \startsetups … \stopsetups don´t get loaded from the \usetypescriptfile command. i hope i have made it clear what i mean. best regards Bernhard
On 30 May 2010, at 10:18, Bernhard Rosensteiner wrote:
Hello,
i have made a typescript which works. the only thing is that i have in my typescript something like:
\startsetups [fallbackfonts] … \stopsetups
\starttypescript [bla] \setups[fallbackfonts] … \stoptypescript
referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts). When i do:
\input Mytypescript
\usetypescriptfile[Mytypescript] \usetypescript[bla] \setupbodyfont[bla,12pt] should work Willi
in the document all works as expected. So my question is how can i load setups with \usetypescriptfile Maybe i have to make a extra „fontfallback-setups“ file, but i don´t know how it is recognized by context. Please help.
best regards Bernhard
___________________________________________________________________________________ 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 ___________________________________________________________________________________
i have made a typescript which works. the only thing is that i have in my typescript something like:
\startsetups [fallbackfonts] … \stopsetups
\starttypescript [bla] \setups[fallbackfonts] … \stoptypescript
referring in my document to the typescriptfile with \usetypescriptfile[Mytypescript] does not load the setups and so the font fallback is not working (obviously \usetypescriptfile only loads the typescripts). When i do:
\input Mytypescript
\usetypescriptfile[Mytypescript] \usetypescript[bla] \setupbodyfont[bla,12pt]
should work
Willi
yes this works normal, but the \startsetups[fontfallback] … \stopsetups are not loaded with \usetypescriptfile - only the \starttypescript … \stoptypescript sections. Please see my second post. There are the file attachments which should demonstrate the behaviour. best regards Bernhard
participants (3)
-
Bernhard Rosensteiner
-
Willi Egger
-
Wolfgang Schuster