ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* \setupbodyfont vs. \switchtotypeface
@ 2007-04-01 20:35 Vyatcheslav Yatskovsky
  2007-04-10 13:17 ` Aditya Mahajan
  0 siblings, 1 reply; 2+ messages in thread
From: Vyatcheslav Yatskovsky @ 2007-04-01 20:35 UTC (permalink / raw)
  To: ntg-context-request@ntg.nl

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                          

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: \setupbodyfont vs. \switchtotypeface
  2007-04-01 20:35 \setupbodyfont vs. \switchtotypeface Vyatcheslav Yatskovsky
@ 2007-04-10 13:17 ` Aditya Mahajan
  0 siblings, 0 replies; 2+ messages in thread
From: Aditya Mahajan @ 2007-04-10 13:17 UTC (permalink / raw)
  To: Yatskovsky, mailing list for ConTeXt users

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-04-10 13:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-01 20:35 \setupbodyfont vs. \switchtotypeface Vyatcheslav Yatskovsky
2007-04-10 13:17 ` Aditya Mahajan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).