\setupbodyfont vs. \switchtotypeface
Hello, What is better to use given the code below? \setupbodyfont or \switchtotypeface? Both produce the same result but in the second case my pdf file is twice bigger.. \enableregime[cp1251] %\language[ru]\setuplanguage[ru] \loadmapfile[t2a-monotype-timesttf.map] \usetypescriptfile[type-buy] \usetypescript[serif][fallback] \starttypescript [serif] [myfont] [t2a] \definefontsynonym [Serif] [t2a-TINRPSMT] [encoding=t2a] \definefontsynonym [SerifBold] [t2a-TINRPSBM] [encoding=t2a] \definefontsynonym [SerifItalic] [t2a-TINRPSIM] [encoding=t2a] \definefontsynonym [SerifBoldItalic] [t2a-TINRPSBI] [encoding=t2a] \stoptypescript \definetypeface [myFont] [rm] [serif] [myfont] [default] [encoding=t2a] \definetypeface [myFont] [mm] [math,boldmath] [myfont] [default] [encoding=t2a] \definetypeface [myFont] [tt] [mono] [typewriter][default][encoding=t2a] \setupbodyfont[myFont,12pt] %\switchtotypeface[myFont][12pt] -- Best, Vyatcheslav
On Sun, 1 Apr 2007, Vyatcheslav Yatskovsky wrote:
Hello,
What is better to use given the code below? \setupbodyfont or \switchtotypeface? Both produce the same result but in the second case my pdf file is twice bigger..
In general, \setupbodyfont is for global font setup while switchtobodyfont is for a local font change. In this case, I think that \setupbodyfont should be used. Aditya
participants (2)
-
Aditya Mahajan
-
Vyatcheslav Yatskovsky