Re: [NTG-context] Problem switching fonts in MKII
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 Thanks, Taco. That did the trick. Now to experiment with more of the fonts included in the TexLive distribution. Tom Benjey 717-258-9733 voice 717-243-0074 fax blog: www.TomBenjey.com ___ 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 switching fonts in MKII
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 ___ 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 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 ___ 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 ___