ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* how to: switch to another font
@ 2001-02-16 15:56 Uwe Koloska
  2001-02-16 16:53 ` Hans Hagen
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Koloska @ 2001-02-16 15:56 UTC (permalink / raw)


Hello Hans, hello all,

I have defined a font that shall only be used for some words (think of it 
as a logo font).
  \definefontsynonym[Batmos-Regular] [...]
Now I want to write "Hello this is {\switchFont{Batmos-Regular}cool stuff} 
and ..." without defining an extra font with \definefont.  Is this 
possible, or do I have to explicitly define all fonts that I wann use in 
the document.

Now I have:
  \def\setBatmosFont%
    {\definefont[batmosFont][Batmos-Regular sa
    \multiply\currentfontscale by 1.4]\batmosFont}
that switches to this particular font and honours the current fontsize.  
Since the font has a smaller x-height, I have to scale it.

If there is no easy way to say: "Switch to this font and honour the current 
size" -- is my solution well defined?

Uwe

-- 
mailto:koloska@rcs.urz.tu-dresden.de
http://rcswww.urz.tu-dresden.de/~koloska/
--                                    --
right now the web page is in german only
but this will change as time goes by ;-)


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

end of thread, other threads:[~2001-02-16 16:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-16 15:56 how to: switch to another font Uwe Koloska
2001-02-16 16:53 ` Hans Hagen

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).