ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Stefan Wachter <stefan.wachter@gmx.de>
Subject: How to switch between fonts?
Date: Wed, 16 Mar 2005 09:33:45 +0100	[thread overview]
Message-ID: <4237EF69.8090306@gmx.de> (raw)

Dear font experts!

For some weeks I try very hard to generate minimal PDF documents using 
the PDF base 14 fonts. Now the following problem popped up:

The Helvitica, Times, and Courier fonts have "8a" as their default 
encoding. Unfortunately, the 8a encoding is somewhat incomplete because 
it misses some characters (eg. the degree character). In TeX I use 
texnansi encoding because it offers most of the special characters that 
I need.

If I use 8a encoding for the PDF document (in order to avoid reencoding) 
then the degree symbol is typeset by an embedded "txsy" font. The bad 
thing about this solution is that this degree character does not take 
care of \bf, \it, or \bi. Therefore the result is unsatisfactory.

If I use texnansi encoding for the PDF document then the degree symbol 
is typeset nicely. The disadvantage of this option is that now the 
built-in fonts are always reencoding which make some additional 2kb for 
the PDF document. I would like to have the reeconded font to be used 
only if it is really necessary.

Now I see two problems:

1. A particual problem in this situation

Is it possible to define font synonymes locally (i.e. inside a group)? 
In that case I could map the virtual fonts that are base on 8a encoded 
raw fonts into virtual fonts that are based on texnansi reencoded raw fonts.

I tried that but it seems that font synonymes are accepted only at the 
beginning.

2. A general problem

Provided that I write a set of typescripts for defining a typeface 
similar to the postscript typefaces of ConTeXt but based on other 
(virtual) fonts: is it possible to switch between these two typefaces. 
The switch must respect the current font characteristics (i.e. \ss, \rm, 
\tt, \bf, \it, \bi, and size).

Thanks for your attention,
--Stefan

             reply	other threads:[~2005-03-16  8:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-16  8:33 Stefan Wachter [this message]
2005-03-17 20:58 ` Hans Hagen
2005-03-18 13:41   ` Stefan Wachter
2005-03-18 14:12     ` Hans Hagen
2005-03-18 15:16       ` Stefan Wachter

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=4237EF69.8090306@gmx.de \
    --to=stefan.wachter@gmx.de \
    --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).