rktjmp / playtime.nvim

🃏 At last! A way to play card games on your computer!
MIT License
67 stars 1 forks source link

Non-rendering characters in The Emissary #4

Open deoxys314 opened 1 week ago

deoxys314 commented 1 week ago

The characters indicating which kingdom I'm at in The Emissary are not present in any fixed-width font I can find on my computer. I regularly use Fira Code patched with powerline and nerd font symbols, even this has no result. I can't even determine what character they are with ga or g8, as neovim reports 20 (space); I suspect the floating window is confusing something here.

What are these supposed to be, and/or are there any fonts (or fallback fonts) I should try to get this rendering properly?

I'm using KiTTY on OSX in this screenshot, but this issue persists across iTerm2, Terminal.App, and Windows Terminal (obviously on Windows).

image
rktjmp commented 1 week ago

It should look like this, at least when using Iosevka.

image

It's part of "Symbols for Legacy Computing", https://en.wikipedia.org/wiki/Symbols_for_Legacy_Computing, 1FBB2 & 1FBB3. 🮲🮳

I figured they would have good support but maybe not.

Can you see them if you just copy paste the chars into your terminal and also into a blank nvim file?

Ideally the symbols would be configurable but I haven't quite thought about how to do that, it can get hinky when for example, its 2 separate chars here, so the component needs to be a bit smarter to work out positions, etc.

All the symbols are picked out of the Iosevka specimen because thats what I use, so Iosevka is a good fallback font choice, but its glyph width is thinner than many fonts, so it might not look great in practice.