* 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
* Re: how to: switch to another font
2001-02-16 15:56 how to: switch to another font Uwe Koloska
@ 2001-02-16 16:53 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2001-02-16 16:53 UTC (permalink / raw)
Cc: ntg-context
At 04:56 PM 2/16/01 +0100, Uwe Koloska wrote:
>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?
\definefont font is a rather raw command
it does support dynamic filenames, so you can say:
\definefontsynonym[blabla][bla]
\definefont[blablala][blabla sa 1]
and redefine the fontsynonym anywhere you want and \bablabla will follow.
what do you mean with the scaling? sa 1.4 does follow the scale, doesn't
it? You can also try:
[somefont at 3ex]
or alike. Or do you want something more tricky?
Hans
-------------------------------------------------------------------------
Hans Hagen | PRAGMA ADE | pragma@wxs.nl
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
^ 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).