Problem switching fonts in MKII
Kudos for the new documentation chapters on Typography and Fonts. However, I still can't completely get my hands around it. Running the following code under TexLive MKII doesn't give the desired results in that defining font synonyms and switching to those typefaces doesn't seem to work. Obviously, I'm doing something wrong. \usetypescriptfile[type-gyr] \usetypescript[palatino][ec] \setupbodyfont[palatino,11pt] \definefontsynonym[AltTextFont][palatino] \usetypescriptfile[type-one] \usetypescript[bookman][default] \setupbodyfont[bookman,11pt] \definefontsynonym[TextFont][bookman] \starttext \switchtotypeface[TextFont] \showbodyfont \input knuth \blank[big] \switchtotypeface[AltTextFont] \showbodyfont \input knuth \blank[big] \switchtotypeface[bookman][11pt] \showbodyfont \input knuth \blank[big] \switchtotypeface[palatino][11pt] \showbodyfont \input knuth \stoptext Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com
Hi, On 01/30/11 19:18, Tom wrote:
Kudos for the new documentation chapters on Typography and Fonts. However, I still can't completely get my hands around it. Running the following code under TexLive MKII doesn't give the desired results in that defining font synonyms and switching to those typefaces doesn't seem to work. Obviously, I'm doing something wrong.
As far as I know, you cannot define fontsynonyms to typefaces. If you want to use names like 'TextFont' as a typeface, you have to use \definetypeface. Best wishes, Taco
participants (2)
-
Taco Hoekwater
-
Tom