-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display of unicode-test.txt has error in some glyphs #11
Comments
Hmm.... emoji font issues again. These little things never work correctly for me :/
It's indeed possible this is caused by some misconfiguration in freetype2. Rendering docs/unicode-test.txt with pango-view + ft2 also shows incorrect results, for example the "other symbols" section. And there shouldn't be much special configuration done in kmscon. Anyway, I need to investigate more into this mess. But I'm definitely not a guru in font rendering... |
Done some additional testing with pango-view, ft2 and cairo backends, some fontconfig changes: Using the shortcuts of kmscon For test/scripting notice that 'pango-view' can output to a picture file. So "new" bitmap-fonts -- those that might have "CBDT Data Tables" in them -- and their scaling seems to be the culprit. Those color/picture fonts are probably going to stay and are developed even further: Colorfonts Temporary "workaround" but with some bugs in character width too: use Symbola Font. |
Okay. So if I understand correctly, this is caused by some bitmap fonts not having correct scaling information with them? So it's not a bug in kmscon.
This might be a separate issue about the character width and which I'm closing the issue and adding a wiki page documenting this. Feel free to add more to the wiki if you find out more :) |
I extended documentation on unicode, colored glyphs, colored fonts and font formats and some test/bug issues in the wiki. |
@plntyk Thank you so much! |
docs/unicode-test.txt Line 3, first 13 symbols for example are internally rendered bigger and then
some small part of that rendered glyph is displayed: like some edge of a circle/square on other symbols (like emojis)
since kmscon uses Pango i checked in KDE, xfce4-terminal with
Result: color emoji due to font replacement/missing glyphs (?) and correct size with font - rending by default should be cairo
However
Result: larger black/white glyphs (similar to parts displayed in kmscon) but complete symbols but different symbol and "normal" font size.
beside some glyphs of docs/unicode-test.txt the following emojis exhibit the problem too for example:
According to kmscon docs it uses freetype2 so it might be some issue with different fonts from that side?
Also, this might be "duplicate" of dvdhrm#133
System: Arch Linux, Intel HD4000 integrated in CPU i7-3770
The text was updated successfully, but these errors were encountered: