Skip to content
This repository has been archived by the owner on Jan 15, 2020. It is now read-only.

Faraway unicode symbols (☢,⚙, …) not displayed. #22

Closed
jpotier opened this issue Feb 20, 2016 · 4 comments
Closed

Faraway unicode symbols (☢,⚙, …) not displayed. #22

jpotier opened this issue Feb 20, 2016 · 4 comments

Comments

@jpotier
Copy link

jpotier commented Feb 20, 2016

When I enter this:
echo "☢☢☢" | lemonbar -f "hack:size=8" -p
It shows nothing. My font (hack) has the glyph.

Is it something related to multibyte utf8?

I opened a new issue on your fork as I suspect it is associated with XFT. If, not, I'll report it in the original repo too.

@krypt-n
Copy link
Owner

krypt-n commented Feb 20, 2016

Are you sure that hack contains a glyph for ☢ or ⚙?
XftCharExists returns false for the UTF16 character 0x2622 (☢) and hack from ttf-hack, installed from Arch repos.

If you, for example, run lemonbar-xft with DejaVu Sans it displays ☢ and ⚙ correctly (since they are three byte sequences in UTF8).

@jpotier
Copy link
Author

jpotier commented Feb 20, 2016

Oh! So it would mean that when I enter these character in my terminal, they are replaced on-the-fly from a backup font? Possible, I actually hadn't checked.

My bad…

Would it be be hard to have this fallback mechanism for missing unicode characters in the font that is used?

@krypt-n
Copy link
Owner

krypt-n commented Feb 20, 2016

Fallback fonts are one of the reasons this fork exists. Using multiple fonts does just that:

echo "test☢" | lemonbar  -f "hack" -f "dejavu sans" -p

@jpotier
Copy link
Author

jpotier commented Feb 20, 2016

Oh cool!! I didn't know!!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants