Skip to content
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

Closed
mattab opened this issue Feb 13, 2012 · 6 comments
Closed

Unifont.ttf font should only be used for the languages that need it #2928

mattab opened this issue Feb 13, 2012 · 6 comments
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Feb 13, 2012

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

@mattab
Copy link
Member Author

mattab commented Feb 13, 2012

Attachment: With unifont, text is a bit squared
countries.png

@mattab
Copy link
Member Author

mattab commented Feb 15, 2012

(In [5840]) Fixes #2928
Only use unicode font for languages that need it (otherwise looks a bit ugly)

@robocoder
Copy link
Contributor

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.

@mattab
Copy link
Member Author

mattab commented Feb 15, 2012

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...

@cloph
Copy link

cloph commented Feb 18, 2012

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)
I will just replace tahoma.ttf with unifont.tff to bypass this change.

@robocoder
Copy link
Contributor

The reason unifont.ttf looks the way it does is because it's generated from bitmap fonts (8x16 or 16x16).

@mattab mattab added this to the 1.7 Piwik 1.7 milestone Jul 8, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc.
Projects
None yet
Development

No branches or pull requests

3 participants