On Wed, Mar 3, 2021, at 2:02 PM, Kevin Smallman wrote:
> Hi again,
>
> I assumed the default font in p9p, used in 9term etc. would be capable of displaying unicode characters like the smiley face, chess pieces etc. I'm sure it did when I used plan9 itself.
>
> However, I'm seeing a lot of the weird face wearing sunglasses (that's what it looks like to me) where many characters should be - I take it that's what you see when there isn't a glyph for the character requested.
You're right, it's the usual glyph for unknown characters in Plan 9, although converted fonts have something else. It's PJW's face; the story is hilarious!
http://spinroot.com/pico/pjw.html
> The $font variable is set to /usr/local/plan9/font/lucm/unicode.9.font
>
> So, the manual says: Unicode includes every character for which appropriate-sized images exist on the system.
>
> Are those images somehow missing in p9p?
The problem is lucm and other fonts with PJW's face were released many years ago, Unicode has grown since then. All the present-day Unicode emoticons are newer than the fonts, and I think new languages have been added.
You can increase coverage by editing the font files. They're plain-text mappings from character ranges to subfont files. You can add lines; there are lots of examples in lucm/unicode.9.font already. See font(7)