9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: "Russ Cox" <rsc@swtch.com>
To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>
Subject: Re: [9fans] troff to postscript with New Century Schoolbook: discrepancies?
Date: Sun,  7 Dec 2008 10:45:59 -0800	[thread overview]
Message-ID: <dd6fe68a0812071045x75d4a558t6310693d27a31229@mail.gmail.com> (raw)
In-Reply-To: <825F3EB5-8C63-4678-B993-21A3D1531DF5@mac.com>

>  New Century Schoolbook is a font included in Plan 9.

Included in Plan 9, no.  Known to troff, yes.
When you view a file with this font using page,
what displays on the screen is the Ghostscript
pseudo-equivalent (URW)++ Century Schoolbook L.

> [Why does \f(NR― work while
> .fp 1 NR
> ―
> does not?]

In both cases, the NR font does not have an em dash.
Lucky for you, troff assumes that characters it doesn't
know about have width 1em and passes them through.
\f(NR temporarily mounts NR as font 0 and uses font 0,
while .fp 1 NR mounts NR as font 1.  In the former case,
font 1 is still R; in the latter, it is not.  If tr2post cannot
find a character in the current font, it tries font 1, so that
for example if there isn't an italic dash in font 2, it will
fall back to the roman dash in font 1.  The difference is
that in the first case, font 1 is still a font with a dash.

Russ

      reply	other threads:[~2008-12-07 18:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-12-07 18:04 Pietro Gagliardi
2008-12-07 18:45 ` Russ Cox [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=dd6fe68a0812071045x75d4a558t6310693d27a31229@mail.gmail.com \
    --to=rsc@swtch.com \
    --cc=9fans@9fans.net \
    /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).