sunaku/tamzen-font

Bitmap font (bdf) does not display unicode/powerline symbols

Opened this issue · 3 comments

lfom commented

First, thanks for the font and work maintaining it. I am trying to use TamzemForPowerline with uxrt/uxterm/xterm but I cannot get the powerline/unicode symbols to display. Maybe because the font is showing iso8859-1 again (bug #10)?

TamzenForPowerline10x20b.bdf -misc-tamzenforpowerline-bold-r-normal--20-145-100-100-c-100-iso8859-1
TamzenForPowerline10x20r.bdf -misc-tamzenforpowerline-medium-r-normal--20-145-100-100-c-100-iso8859-1
TamzenForPowerline5x9b.bdf -misc-tamzenforpowerline-bold-r-normal--9-65-100-100-c-50-iso8859-1
TamzenForPowerline5x9r.bdf -misc-tamzenforpowerline-medium-r-normal--9-65-100-100-c-50-iso8859-1
TamzenForPowerline6x12b.bdf -misc-tamzenforpowerline-bold-r-normal--12-87-100-100-c-60-iso8859-1
TamzenForPowerline6x12r.bdf -misc-tamzenforpowerline-medium-r-normal--12-87-100-100-c-60-iso8859-1
TamzenForPowerline7x13b.bdf -misc-tamzenforpowerline-bold-r-normal--13-94-100-100-c-70-iso8859-1
TamzenForPowerline7x13r.bdf -misc-tamzenforpowerline-medium-r-normal--13-94-100-100-c-70-iso8859-1
TamzenForPowerline7x14b.bdf -misc-tamzenforpowerline-bold-r-normal--14-101-100-100-c-70-iso8859-1
TamzenForPowerline7x14r.bdf -misc-tamzenforpowerline-medium-r-normal--14-101-100-100-c-70-iso8859-1
TamzenForPowerline8x15b.bdf -misc-tamzenforpowerline-bold-r-normal--15-108-100-100-c-80-iso8859-1
TamzenForPowerline8x15r.bdf -misc-tamzenforpowerline-medium-r-normal--15-108-100-100-c-80-iso8859-1
TamzenForPowerline8x16b.bdf -misc-tamzenforpowerline-bold-r-normal--16-116-100-100-c-80-iso8859-1
TamzenForPowerline8x16r.bdf -misc-tamzenforpowerline-medium-r-normal--16-116-100-100-c-80-iso8859-1

I will try pcf version soon, but if anyone has tips on how to use the bitmap version and display powerline (zsh + Powerlevel10k) fonts properly in uxterm/urxvt it would be awesome.

Regards

Thanks for reporting this. 🤔 Please try changing iso8859 to iso10646 in the included bdf/fonts.dir file and see if that helps.

lfom commented

Thanks for reporting this. Please try changing iso8859 to iso10646 in the included bdf/fonts.dir file and see if that helps.

Thanks for the quick reply. Nope, it didn't work: I have changed the sequence in fonts.dir, called xset fp rehash and tried to use it in uxterm, no deal. I guess it is hard-coded in the font files themselves.

FYI, pcf version also is recognized as iso8859.

sunaku commented

You're right, the iso8859 value is indeed hard-coded in the BDF fonts (they're just plain text files) themselves:

$ head -2 bdf/Tamzen10x20r.bdf
STARTFONT 2.1
FONT -Misc-Tamzen-Medium-R-Normal--20-145-100-100-C-100-ISO8859-1

Please try changing the hard-coded values to your desired encoding and see if that solves the problem. Thanks.