9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: arnold@skeeve.com
To: 9fans@9fans.net
Subject: Re: [9fans] plan9port troff - \(sq character
Date: Wed, 13 Aug 2025 01:28:44 -0600	[thread overview]
Message-ID: <202508130728.57D7Siwr005156@freefriends.org> (raw)
In-Reply-To: <17549415010.DECE.18111@composer.9fans.topicbox.com>

Thanks for this!  I will try it out and report back.

ldb <andpuke@foxmail.com> wrote:

> (Previous reply did not land on the list so this is a repost.)
> > In plan9 troff I'm getting an upside-down exclamation point.
> > Any idea why?  How can I get \(sq to give me a square?
> > 
> Viewing the PostScript produced by tr2post, turns out it uses the font
> LucidaSansUnicode25 to render the square, which means you need to have
> these fonts installed to $PLAN9/postscript/font and then call "psfonts"
> programs to embed the PostScript font.
>
> The "NOTICE" file at $PLAN9/postscript/font says:
>
> > This directory is intended to contain the same files
> > as in /sys/lib/postscript/font in a Plan 9 distribution,
> > including the Lucida Sans Unicode font from B&H. 
> > The terms of the font license in Plan 9 do not permit
> > us to distribute those files here.
> > 
> > As a substitute for the Lucida Sans fonts,
> > Plan 9 from User Space provides Luxi Sans,
> > also by B&H but available under a more liberal
> > license, and Deja Vu, a Unicode extension of the
> > Bitstream Vera family of fonts.
> > 
> > Luxi Sans is similar to Lucida Sans except that
> > it has no Unicode support.  Deja Vu does have
> > good Unicode support.
> 
> So you'll need to find the distribution of Plan9 which has following files
> LucidaSans-Demi
> LucidaSans-Italic
> LucidaSans-Typewriter83
> LucidaTypewriter
> NOTICE
> ams
> cm
> fontmap
> lino
> lsunr00.pfa
> lsunr01.pfa
> lsunr02.pfa
> lsunr03.pfa
> lsunr04.pfa
> lsunr05.pfa
> lsunr20.pfa
> lsunr21.pfa
> lsunr22.pfa
> lsunr24.pfa
> lsunr25.pfa
> lw+
> 
> You will need to *append *the fontmap file to $PLAN9/postscript/font/fontmap and copy the files `Lucida*` and `*.pfa`, and optionally `cm` and `ams`.
> 
> Then `9 tr2post file.dpost | 9 psfonts > file.ps` would render the symbols properly.
> 
> You can also use `dpost` from heirloom-doctools to render the troff output to PostScript, saves the procedure to manually install the fonts.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T87428730dcc006b0-Mf1fa9c710ef9c14a3939e66a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2025-08-13  8:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-11 14:35 arnold
2025-08-11 18:36 ` tlaronde
2025-08-11 19:30   ` arnold
2025-08-11 18:57 ` arnold
2025-08-11 19:45   ` ldb
2025-08-13  7:28     ` arnold [this message]
2025-08-13 15:00       ` arnold
2025-08-11 19:23 ` LdBeth

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=202508130728.57D7Siwr005156@freefriends.org \
    --to=arnold@skeeve.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).