[Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
(The heirloom-doctools README.md says to ask Heirloom doctools questions on this list.) I'd like to use the Symbola font in Heirloom troff. I tried the following: .do xflag 3 .\" fp 5 Optima Optima-Regular ttf .fp 5 Symbola S

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread Richard Morse
According to the Heirloom Troff manual, I think that you cannot just insert Unicode characters (although maybe if your LC* environment variables are set correctly, you can?). It says: > Both nroff and troff allow references to specific Unicode characters with the > \U'X' escape sequence; > it c

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
And if I add "and explicit unicode character reference \U'1F0A1'" to the file, that character doesn't show up either. On Tue, Aug 4, 2020 at 2:47 PM Richard Morse wrote: > According to the Heirloom Troff manual, I think that you cannot just > insert Unicode characters (although maybe if your LC*

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread Richard Morse
Huh. I’m afraid I’m out of my depth then; you might check and see if your LC_* environment variables are set to something incompatible with utf-8 (or, maybe, check and make sure the file in UTF-8, not UCS-16 or something if you’re on Windows), but hopefully someone with more experience and knowl

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
In Emacs M-x describe-coding-system tells me the coding system for saving the buffer is utf-8-unix. I don't have any LC_* environment variables set, but LANG=en_US.UTF-8. I'm not very knowledgeable about the insides of Unicode fonts, unfortunately. On Tue, Aug 4, 2020 at 4:27 PM Richard Morse w

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread Richard Morse
Hm. Just for my edification, I tried a few things. I’m on a Mac, and I don’t know when I compiled Heirloom troff, but it was a year or two ago, so something things may be different. I downloaded the Symbola font from fontlibrary.org. The version I got was .ttf, not .otf. The various things tha

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread John Gardner
> The version I got was .ttf, not .otf I opened both the original OTF and the FontLibrary.org TTF in Glyphs ; the OTF has 12,589 glyphs, whereas the TTF only has 7,956 glyphs. Try the OTF version of Sym

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
Thanks for the tip! As it turns out, I am using the OTF. On Wed, Aug 5, 2020 at 12:24 AM John Gardner wrote: > > The version I got was .ttf, not .otf > > I opened both the original OTF and the > FontLibrary.org > TTF in Gly

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread John Gardner
Going from the fact that unimap.c uses an int for storing Uni

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
Well, 0x fits in a unsigned short, two bytes. An unsigned int is 4 bytes, and 0x fits in it. I don't think that it is the size of the int that's the problem. On Wed, Aug 5, 2020 at 12:52 AM John Gardner wrote: > Going from the fact that unimap.c >

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread T. Kurt Bond
Looking at the postscript output there is a "/uni1F0A1 9429 def" and a "/uni1F10A" in a "/Encoding-@15@36 [...] def"; is that part of the font machinery? (I'm sadly ignorant of PostScript, alas.) Looking at troff/troff.d/otf.c

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-04 Thread John Gardner
> Looking at the postscript output there is a "/uni1F0A1 9429 def" and a > "/uni1F10A" in a "/Encoding-@15@36 [...] def"; is that part of the font > machinery? (I'm sadly ignorant of PostScript, alas.) Kind of. PostScript predates Unicode, sadly, and has limits on how many glyphs can be mapped to

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-05 Thread Richard Morse
Hi! The issue arises before it even gets to the PostScript. If you run the following commands: .do xflag 3 .lc_ctype UTF-8 .fp 5 Symbola Symbola ttf .ft Symbola ❊ works .sp 🂡 char .sp \U'1F0A1' uesc .sp \[u1F0

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-05 Thread T. Kurt Bond
Interesting. On Wed, Aug 5, 2020 at 8:55 AM Richard Morse wrote: > Hi! The issue arises before it even gets to the PostScript. > > If you run the following commands: > > .do xflag 3 > .lc_ctype UTF-8 > .fp 5 Symbola Symbola ttf > .ft Symbola > ❊ works >

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-05 Thread Roy Fisher via
What happens if Symbola is mounted on a high font position (>10)? .do xflag 3 .fp 11 Symbola Symbola otf I vaguely remember encountering a few oddities with fonts remounted on position 5. > > I tried the following: > > .do xflag 3 > .fp 5 Symbola Symbola otf >

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-05 Thread T. Kurt Bond
I just tried that and it didn't work. On Wed, Aug 5, 2020 at 10:41 PM Roy Fisher wrote: > What happens if Symbola is mounted on a high font position (>10)? > >.do xflag 3 >.fp 11 Symbola Symbola otf > > I vaguely remember encountering a few oddities with fonts remounted on > position 5.

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-05 Thread Richard Morse
I also just tried `.fp 0 … `, and also changing to `.fp 0 Symbola Symbola.ttf`, incase the issue was with the whole “supply” argument. Ricky > On Aug 5, 2020, at 10:49 PM, T. Kurt Bond wrote: > > I just tried that and it didn't work. > > On Wed, Aug 5, 2020 at 10:41 PM Roy Fisher wrote: > >

Re: [Heirloom] Using the Symbola font in Heirloom troff

2020-08-05 Thread T. Kurt Bond
Thanks! On Wed, Aug 5, 2020 at 10:51 PM Richard Morse wrote: > I also just tried `.fp 0 … `, and also changing to `.fp 0 Symbola > Symbola.ttf`, incase the issue was with the whole “supply” argument. > > Ricky > > > On Aug 5, 2020, at 10:49 PM, T. Kurt Bond wrote: > > > > I just tried that and