groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Groff] Bold \(sq not filled


From: Ralph Corderoy
Subject: Re: [Groff] Bold \(sq not filled
Date: Fri, 30 May 2014 14:00:37 +0100

Hi Carsten,

> in troff the Times Roman Bold \(sq is filled solid black. In groff
> there is no difference between any Times Roman font.

Agreed.  This does seem to be a bug in groff that needs formerly lodging
somewhere?

> Is there a way to get the standard (UNIX V7) behaviour of a solid
> filled bold \(sq?

For what output devices?

> (I also checked heirloom troff, there bold \(sq is as expected.)

Perhaps due to being derived from V7's source.

> Or is there any other special character which draws a solid filled
> square? (At the moment I use a scaled draw function.)

It seems -Tps draws \(sq whereas -Tutf8 uses U+25A1.  The neighbouring
U+25A0 is filled so \[u25A0] might do you, depending on the output
device.

    $ printf '.pl 1v\n%s\n' 'a\(sqba\[u25A0]b' | groff -Tutf8
    a□ba■b
    $
    $ printf '.pl 1v\n%s\n' 'a\(sqba\[u25A0]b' | groff -Tutf8 |
    > iconv -t ucs-2le | hexdump -x
    0000000    0061    25a1    0062    0061    25a0    0062    000a
    000000e
    $

Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]