Glyph rendering voodoo

Morten Bo Johansen <[email protected]> Sun, 15 Mar 2026 14:07:42 +0100
Newsgroups gmane.comp.printing.groff.general
Message-ID <[email protected]>
Well, probably not voodoo but very strange to me. Try this:

  echo "\\\f[U-S]\[uF8E8]\f" | groff -Tpdf | pdftotext - -
  
And if you see the same as me, you'll see a white circle with an
intersection symbol in it.

Now, try instead and send the same output to a file:

  echo "\\\f[U-S]\[uF8E8]\f" | groff -Tpdf >t.pdf
  
Open the file in your preferred pdf-viewer and you should see a circle with
an 'R' in it (registered trademark?), i.e. a completely different glyph.

pdftotext should not be responsible because groff has already done its job.

If you see the same, could you explain this to me - or maybe just slap my
face so it points in the right direction ;)

Regards,
Morten