ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Cc: ntg-context <ntg-context@ntg.nl>
Subject: Re: how to: switch to another font
Date: Fri, 16 Feb 2001 17:53:45 +0100	[thread overview]
Message-ID: <3.0.6.32.20010216175345.017ee510@server-1> (raw)
In-Reply-To: <01021616565303.00577@bilbo>

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


      reply	other threads:[~2001-02-16 16:53 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-02-16 15:56 Uwe Koloska
2001-02-16 16:53 ` Hans Hagen [this message]

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=3.0.6.32.20010216175345.017ee510@server-1 \
    --to=pragma@wxs.nl \
    --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).