ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Adam Lindsay" <atl@comp.lancs.ac.uk>
Subject: Re: using fonts
Date: Mon, 6 Dec 2004 14:45:38 +0000	[thread overview]
Message-ID: <20041206144538.1554@news.comp.lancs.ac.uk> (raw)
In-Reply-To: <41B45338.80401@hoki.ibp.fhg.de>

Wolfgang Zillig said this at Mon, 6 Dec 2004 13:40:24 +0100:

>Hello,
>
>I think I´mgetting confused with all of the font selection within context.

Don't worry: it's a bit complicated at first... but it's learn-able (and
easier, to my mind, than LaTeX's way of doing things!).

>First: I have a miktex environment on on W2K.

I don't have miktex. But I'll try to teach what I know!

>1.
>to change single fonts:
>\definetypeface [palatino] [rm] [serif] [palatino] [default] [encoding=ec]
>\switchtotypeface[palatino][12pt,rm]
>results in an error that the font is not found (font: uplr8t)

okay, let's expand through the typescripts a bit:
You invoke these typescripts through your typeface definition (primarily;
there are others that automatically get triggered):
 [serif][palatino][name]
 [serif][palatino][ec]
 [serif][default] [size] % etc...

Serif then gets mapped in type-syn:
\starttypescript [serif] [palatino] [name]
  \definefontsynonym [Serif]            [Palatino] %...

Palatino then gets mapped in type-enc:
\starttypescript [serif] [palatino] [texnansi,ec,8r,t5]
  \definefontsynonym [Palatino][\typefaceencoding-
uplr8a][encoding=\typefaceencoding] %...

This line gets expanded to:
  \definefontsynonym [Palatino][ec-uplr8a][encoding=ec] %...

...So at this point, your system would be looking around for ec-
uplr8a.tfm, but it's not. You provide a clue as to why not:

>2.
>I thought that the default encoding should be texnansi

In the new cont-sys.rme, it's set to ec encoding:
 \setupencoding [\s!default=ec]

...and the berry type synonyms are invoked:
 \usetypescript [berry] [\defaultencoding]

So the following typescript gets invoked, mapping the above ec-uplr8a:
\starttypescript [berry] [ec]
 \definefontsynonym [ec-uplr8a] [uplr8t]  [encoding=ec]

That, being the last one in the chain, is what ConTeXt looks for. For
those following along at home, the whole chain of name resolution, taking
into account the encoding, is therefore:
(\rm\tf) > Serif > Palatino > ec-uplr8a > uplr8t

>on my system following files are available:

That's quite a mixture of types, below. Can you provide a listing of the
.tfm files in fonts/tfm/urw/palatino ?

>uplr8a.afm

(The base Adobe Font Metrics file, which enables you to generate new tfms)

>uplr8v.tfm
>uplr8v.pfb

(Vietnamese variants of the fonts!)

>uplr8a.pfb

(That's the postscript font file you ultimately want to include in your
document.)

>uplr8v.htf

(Irrelevant to our discussion. TeX4ht-related, I think?)

>Summary:
>
>do I need to get the missing fonts/files and why are they not provided
>with miktex.
>Perhaps a change of the distribution is to prefer? (which one)

Well, I'm wondering where all the tfms have gone on my distribution, as
well (gwTeX on the Mac doesn't seem to include 8r or ec/8t metrics,
either). It looks like you might have to do a texfont run to build
(ConTeXt-named) tfms in order to be useful.

It's not all that scary. I gave a rundown of the steps I followed in this
primitive MyWay. It might be useful so long as you don't treat it as
literal instructions:
<http://homepage.mac.com/atl/tex/TexfontExamined.pdf>

Cheers,
adam
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
 Adam T. Lindsay, Computing Dept.     atl@comp.lancs.ac.uk
 Lancaster University, InfoLab21        +44(0)1524/510.514
 Lancaster, LA1 4WA, UK             Fax:+44(0)1524/510.492
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

  parent reply	other threads:[~2004-12-06 14:45 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-30 21:22 Wrap a url David Arnold
2004-11-02  9:34 ` Willi Egger
2004-11-02 14:17   ` David Arnold
2004-11-02 16:24     ` Hans Hagen
2004-11-02 17:47       ` David Arnold
2004-11-02 18:02         ` Hans Hagen
2004-12-03 14:30         ` Patrick Gundlach
2004-12-05 17:51           ` Willi Egger
2004-12-05 22:17             ` Patrick Gundlach
2004-12-06 21:19               ` Willi Egger
2004-12-05 17:52           ` Willi Egger
2004-12-06 12:40           ` using fonts Wolfgang Zillig
2004-12-06 13:41             ` Patrick Gundlach
2004-12-06 14:52               ` Adam Lindsay
2004-12-06 21:30                 ` Re: using fonts -- installation Rob Ermers
2004-12-06 21:50                   ` Adam Lindsay
2004-12-06 23:19                     ` Rob Ermers
2004-12-06 23:23                     ` h h extern
2004-12-06 23:27                   ` h h extern
2004-12-07  8:09                     ` r.ermers
2004-12-07  8:18                       ` Adam Lindsay
2004-12-07  8:17                   ` Adam Lindsay
2005-01-10 16:12               ` Problem with backgrounds and page breaks Matthias Weber
2005-01-10 17:49                 ` Hans Hagen
2005-01-10 18:35                   ` Matthias Weber
2005-01-10 18:57                     ` Hans Hagen
2005-01-10 19:29                       ` Matthias Weber
2004-12-06 14:45             ` Adam Lindsay [this message]
2004-12-06 14:50               ` using fonts Patrick Gundlach
     [not found] <41B56763.6010102@hoki.ibp.fhg.de>
2004-12-07  8:27 ` Adam Lindsay
2004-12-07  9:09   ` Patrick Gundlach
2004-12-07  9:15     ` Adam Lindsay
2004-12-07 10:13       ` Patrick Gundlach
2004-12-07 10:18         ` Wolfgang Zillig
2004-12-07 10:38           ` Patrick Gundlach
2004-12-07 11:35   ` Hans Hagen
2004-12-07 12:15     ` Wolfgang Zillig
2004-12-07 12:54       ` Adam Lindsay
2004-12-07 17:09         ` Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2000-05-07 20:13 Using Fonts Hraban
2000-05-08 19:01 ` Hans Hagen

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=20041206144538.1554@news.comp.lancs.ac.uk \
    --to=atl@comp.lancs.ac.uk \
    --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).