ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Vyatcheslav Yatskovsky <yatskovsky@gmail.com>
To: "ntg-context-request@ntg.nl" <ntg-context@ntg.nl>
Subject: \setupbodyfont vs. \switchtotypeface
Date: Sun, 1 Apr 2007 23:35:55 +0300	[thread overview]
Message-ID: <1793693832.20070401233555@gmail.com> (raw)

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                          

             reply	other threads:[~2007-04-01 20:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-01 20:35 Vyatcheslav Yatskovsky [this message]
2007-04-10 13:17 ` Aditya Mahajan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1793693832.20070401233555@gmail.com \
    --to=yatskovsky@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).