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
Unifont.ttf font should only be used for the languages that need it #2928
Comments
Attachment: With unifont, text is a bit squared |
(In [5840]) Fixes #2928 |
That's not exactly correct. A user may have English as his/her language, but the content (eg keywords) may require unifont. I wonder if there are font designers who can improve unifont for us (and the free software community at large)? Eg add more anti-aliasing hints. |
Good point, I didn't think of the case where for example "Page titles" or "Keywords" would contain unicode characters. At least it should work for most use cases. Also these graphs that could contain unicode are not displayed by default in PDF/html. But definitely we would need better open source unicode fonts... |
Too bad - that change is rather non-obvious, and that list of 13 languages doesn't really cut it/is far from being comprehensive.. for those you don't need a font that covers all of unicode either. You know about droid fonts? For the ranges covered by the languages in the list it should be OK. I suggest to forget about the idea of trying to find that looks good in all languages/script. (Also let me note that the default font also has its problem/is far from looking "nice" - just see the kerning/horizontal letter positioning on the word "Others" or in "Explorer" - so while the unifont might be "a little square" (terminal font style), it at least has proper/better looking character spacing... http://demo.piwik.org/index.php?module=API&method=ImageGraph.get&idSite=3&apiModule=UserSettings&apiAction=getBrowser&token_auth=anonymous&graphType=horizontalBar&period=month&date=today&width=500&height=250) |
The reason unifont.ttf looks the way it does is because it's generated from bitmap fonts (8x16 or 16x16). |
I have put the unifont.ttf on demo.piwik.org
Now all graphs are generated with this font. The text is not as pretty as the standard built in ttf font.
We should therefore only use the unicode font when it is needed (for Japanese, Russian, Chinese, etc.).
See screenshots
The text was updated successfully, but these errors were encountered: