ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jens-Uwe Morawski <morawski@gmx.net>
Subject: Re: updates to Help Page
Date: Mon, 25 Nov 2002 21:39:15 +0100	[thread overview]
Message-ID: <20021125213915.18d89402.morawski@gmx.net> (raw)
In-Reply-To: <2D8F156F-0095-11D7-9C5E-0030657A7050@fastmail.fm>

On Mon, 25 Nov 2002 11:44:34 -0500
"Bruce D'Arcus" <bdarcus@fastmail.fm> wrote:

> Also, regarding the Fontsite CD scripts (thanks for this too!), you 
> mention Christopher League's similar project for LaTeX, and that your's 
> is not as ambitious.
> [...]
> I have 
> the fonts and the metrics and so forth (from League); the main issue I 
> always run into is the typescript files. 
> I'd prefer to have the fonts useful both in LaTeX and ConTeXt...

Then the question is not to do the same for ConTeXt but to make the
LaTeX font installation available in ConTeXt as well.

The only thing that is specific to LaTeX are the .fd files. The only
thing that is specific to ConTeXt are the typescripts. Thus, simply make
typescripts from the .fd files. The only important .fd file of an LaTeX
font installation is the t1XXX.fd, here XXX is the LaTeX font family.

(example is the luximono fonts)
if you look in that file (t1ul9.fd) you will find something like
  \DeclareFontShape{T1}{ul9}{m}{n}{<-> ul9r8t}{}
this is for a ConTeXt typescript
  \definefontsynonym [LuxiMono][ul9r8t] [encoding=ec]

the bold variant is
  \DeclareFontShape{T1}{ul9}{b}{n}{<-> ul9b8t}{}
  \definefontsynonym [LuxiMono-Bold][ul9b8t] [encoding=ec] 

and so on...

If you have translated all .fd entries for the typescript then
it loks like
\starttypescript [mono] [LuxiMono] [ec]
  \definefontsynonym [LuxiMono]              [ul9r8t] [encoding=ec]
  \definefontsynonym [LuxiMono-SmallCaps]    [ul9r8t] [encoding=ec]
  \definefontsynonym [LuxiMono-Slanted]      [ul9ro8t][encoding=ec]
  \definefontsynonym [LuxiMono-Italic]       [ul9ro8t][encoding=ec]
  \definefontsynonym [LuxiMono-Bold]         [ul9b8t] [encoding=ec]
  \definefontsynonym [LuxiMono-BoldSmallCaps][ul9b8t] [encoding=ec]
  \definefontsynonym [LuxiMono-BoldSlanted]  [ul9bo8t][encoding=ec]
  \definefontsynonym [LuxiMono-BoldItalic]   [ul9bo8t][encoding=ec]
\stoptypescript

\starttypescript [mono] [LuxiMono] [name]
  \definefontsynonym [Mono]           [LuxiMono]
  \definefontsynonym [MonoCaps]       [LuxiMono-SmallCaps]
  \definefontsynonym [MonoSlanted]    [LuxiMono-Slanted]
  \definefontsynonym [MonoItalic]     [LuxiMono-Italic]
  \definefontsynonym [MonoBold]       [LuxiMono-Bold]
  \definefontsynonym [MonoBoldCaps]   [LuxiMono-BoldSmallCaps]
  \definefontsynonym [MonoBoldSlanted][LuxiMono-BoldSlanted]
\stoptypescript

so, if you have access to fonts in LaTeX then take its t1XXX.fd file,
translate all entries to a ConTeXt typescript... voila!
There is no need that anybody provides an extra full set of TeX font files
(vf,tfm) esp. for ConTeXt.

Jens

  parent reply	other threads:[~2002-11-25 20:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25 16:26 Bill McClain
2002-11-25 16:44 ` Bruce D'Arcus
2002-11-25 18:48   ` Bill McClain
2002-11-25 19:06     ` Bruce D'Arcus
2002-11-25 20:05       ` Bill McClain
2002-11-25 20:39   ` Jens-Uwe Morawski [this message]
2002-11-25 20:54     ` Bill McClain
2002-11-25 20:56       ` Bruce D'Arcus
2002-11-25 16:46 ` Hans Hagen
2002-11-25 16:56   ` Bruce D'Arcus
2002-11-25 18:56   ` Bill McClain

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=20021125213915.18d89402.morawski@gmx.net \
    --to=morawski@gmx.net \
    --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).