ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Matt Gushee <mgushee@havenrock.com>
Subject: Re: How to use PostScript font
Date: Wed, 18 Aug 2004 15:16:05 -0600	[thread overview]
Message-ID: <20040818211605.GA1624@swordfish> (raw)
In-Reply-To: <672d10671a77.671a77672d10@tampabay.rr.com>

On Wed, Aug 18, 2004 at 03:16:43PM -0400, skhilji@tampabay.rr.com wrote:

> Someone suggsted that I use the actual font names.  So I tried:

That would be me. But what I really meant was that you may need to know
those names in order to solve the problem, not that you can expect to
use them directly in ConTeXt.

Now I would say you should use a typescript if you can. There's no real
benefit to using low-level font commands except that you might avoid the
need to create typescripts. Because it looks to me like you probably
need to either change the names of the fonts to conform to the built-in
typescripts, or write your own typescript. The former could cause
trouble if you ever want to use the fonts in LaTeX, so you're probably
better off writing your own typescript. It's a bit weird at first, but
really quite easy when you get used to it; hmm--let me give you a
sample: I'll attach below my Palatino typescript. I haven't used it much
lately, so I can't recall if it works 100%, but it might help you get
started. I also use TeTeX on Linux, so it might be usable as is.

For more info, there's a Fonts in ConTeXt manual that tells you most of
what you need to know, and then Bill McClain has some good examples on
the Web ... I believe his site is
<http://home.salamander.com/~wmmclain/>.

Fonts in TeX take a while to master, but once you do, life is great! (I
think ... I hope ... I'll let you know when I get there ;-)

--  type-palatino.tex  -------------------------------------------------
\usetypescriptfile[type-buy]

\starttypescript [serif] [palatino] [8r]
    \usetypescript[serif][fallback]
    \definefontsynonym [Palatino-Roman]         [pplr8r]  [encoding=8r]
    \definefontsynonym [Palatino-Bold]          [pplb8r]  [encoding=8r]
    \definefontsynonym [Palatino-Italic]        [pplri8r] [encoding=8r]
    \definefontsynonym [Palatino-Bold-Italic]   [pplbi8r] [encoding=8r]
    \definefontsynonym [Palatino-Slanted]       [pplro8r] [encoding=8r]
    \definefontsynonym [Palatino-Bold-Slanted]  [pplbo8r] [encoding=8r]
    \definefontsynonym [Palatino-Caps]          [pplrc8t] [encoding=8t]
\stoptypescript

\starttypescript [serif] [palatino] [name]
    \definefontsynonym [Serif]            [Palatino-Roman]
    \definefontsynonym [SerifBold]        [Palatino-Bold]
    \definefontsynonym [SerifItalic]      [Palatino-Italic]
    \definefontsynonym [SerifBoldItalic]  [Palatino-Bold-Italic]
    \definefontsynonym [SerifSlanted]     [Palatino-Slanted]
    \definefontsynonym [SerifBoldSlanted] [Palatino-Bold-Slanted]
    \definefontsynonym [SerifCaps]        [Palatino-Caps]
\stoptypescript

\starttypescript[PalatinoFace]
    \definetypeface [Palatino] [rm] [serif] [palatino] [default] [encoding=8r]
\stoptypescript

-- 
Matt Gushee                 When a nation follows the Way,
Englewood, Colorado, USA    Horses bear manure through
mgushee@havenrock.com           its fields;
http://www.havenrock.com/   When a nation ignores the Way,
                            Horses bear soldiers through
                                its streets.
                                
                            --Lao Tzu (Peter Merel, trans.)

  parent reply	other threads:[~2004-08-18 21:16 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-18 19:16 skhilji
2004-08-18 19:24 ` Patrick Gundlach
2004-08-19  8:07   ` Hans Hagen
2004-08-19 21:58     ` Patrick Gundlach
2004-08-20  7:55       ` Hans Hagen
2004-08-20 14:09         ` Patrick Gundlach
2004-08-20 15:52           ` Hans Hagen
2004-08-21  8:48             ` Patrick Gundlach
2004-08-22 23:26               ` Hans Hagen Outside
2004-08-24  9:56                 ` Siep Kroonenberg
2004-08-24 10:09                   ` Patrick Gundlach
2004-08-24 14:38                     ` Siep Kroonenberg
2004-08-18 19:28 ` Bill McClain
2004-08-18 21:16 ` Matt Gushee [this message]
2004-08-19 22:01 ` Patrick Gundlach
  -- strict thread matches above, loose matches on Subject: below --
2004-08-20 13:41 skhilji
2004-08-20 13:54 ` Patrick Gundlach
2004-08-20 15:04   ` Hans Hagen
2004-08-20 16:11     ` Patrick Gundlach
2004-08-20 16:27       ` Hans Hagen
2004-08-20 16:40         ` Patrick Gundlach
2004-08-22  5:39           ` Salman Khilji
2004-08-22  6:28             ` Salman Khilji
2004-08-22  6:23               ` Larry Stamm
2004-08-22 18:11                 ` Patrick Gundlach
2004-08-19 13:02 skhilji
2004-08-19 13:40 ` Mari Voipio
2004-08-20  0:06   ` Nigel King
2004-08-20  0:42     ` Steve Peter
2004-08-18  2:56 skhilji
2004-08-18 15:02 ` Hans Hagen
2004-08-18 16:13   ` Matt Gushee

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=20040818211605.GA1624@swordfish \
    --to=mgushee@havenrock.com \
    --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).