-
Notifications
You must be signed in to change notification settings - Fork 46
Cannot display some special characters #28
Comments
Lemonbar (and this fork) is only able to handle utf-8 characters that are represented by <= 3 bytes if a character needs more bytes, it prints 0xfffd ("replacement character") instead. Could this be the limitation you encountered? |
Hmm, I guess I have the same issue. I wanted to display some characters from FontAwesome, but I just get a "?". |
it is possible to make some small correction in the code to allow these characters. however, I can not commit since I have not yet learned how to do that. But I made the code change and it works. It is quite logic and simple. |
@Popkultur have you looked at the ucs4 branch? Specifically 91b444a. It replaces the utf8 decoding with a function call to a fontconfig utility method and changes the type of characters to utf32. Unfortunately this project and lemonbar's original version are quite inactive, but feel free to submit any changes. Caring about source compatibility with lemonboy's version is probably a wasted effort at this point. |
Edit: Seems to be the same issue as in: #22 I got confused since xfce's character map showed that the font has those symbols in it, lemonbar didn't like that though. So I added Hello! Sorry to add something to this old issue, but I have the same problem. I've compiled the master and the ucs4 branch, however in both I got the same result when using a font which supports the unicode characters. echo "%{F#00FF00}Test: ⓪ ① ② ③ ④ ⑤ ⑥ ⑦ ⑧ ⑨ ⓿ ❶ ❷ ❸ ❹ ❺ ❻ ❼ ❽ ❾ ⓵ ⓶ ⓷ ⓸ ⓹ ⓺ ⓻ ⓼ ⓽" | ./lemonbar -p -f "UbuntuMonoDerivativePowerline Nerd Font" -B "#FF0000" -b Output: http://0x0.st/sSbU.png Is there a solution to this? |
To hold this issue up: Same problem here. I'm using Nerd Fonts ( |
Okay I realized I used the false font, with not the whole set of symbols. Why can't I use |
|
Sorry, I didn't formulate that clearly. The output of |
Oh, I c. U meant lemonbars argument The output is: Yes, I already tried it with it. In fact the posted output is that with the build of this branch. |
This means that fontconfig can't find a font for the description "Sauce Code Pro Nerd Font Complete Mono" and falls back to DejaVuSans. lemonbar just uses fontconfig so it can't use any font fontconfig can't find. |
Make sense to me. I'm really a noob to font packages and just installed it once. |
Depends on your distro. I'd recommend reading around in your distro's documentation and the fontconfig manpages. |
Ha! It works! Thanks for helping me! |
For some reason I cannot display characters with hex code point greater than FFFF, instead a "?" glyph (clearly fallback) is printed on the bar, is this possible?
The text was updated successfully, but these errors were encountered: