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

Unsharp rendering at font size 8 to 10 #556

Closed
sebastic opened this issue Nov 10, 2015 · 9 comments
Closed

Unsharp rendering at font size 8 to 10 #556

sebastic opened this issue Nov 10, 2015 · 9 comments

Comments

@sebastic
Copy link

With the removal of the Droid font in Debian, the JOSM package will switch to the Noto font.

The JOSM developers remarked in JOSM issue #12085 that the rendering at small font sizes is not sharp as demonstrated in this GIF:
noto

Is it possible to improve the sharpness at small font sizes? That would remove the barrier to switch to Noto.

@dougfelt
Copy link
Contributor

@behdad, any suggestions?

@behdad
Copy link
Contributor

behdad commented Nov 12, 2015

Is it the hinted noto? This is a problem best answered on the freetype-devel mailing list, and only after inspecting the actual fonts used and the FreeType settings involved.

@sebastic
Copy link
Author

Yes, it's hinted noto.

josm-droid-noto
The above example is of JOSM 8969 using the embedded copy of the Droid font from their SVN repo (DroidSans.ttf) on left, and the Noto font from the fonts-noto (2015-05-11+cjk-1) Debian package (NotoSans-Regular.ttf) on the right. This is on Debian unstable with freetype (2.6-2) and OpenJDK 7 (7u91-2.6.2-1).

@bastik
Copy link

bastik commented Nov 13, 2015

You can see the difference by calling the following commands:

$ ftview -m 'Bizonweide ' 8 DroidSans.ttf
$ ftview -m 'Bizonweide ' 8 NotoSans-Regular.ttf

The font file is from the Noto-hinted.zip which is for download on the Noto website. I can provide screenshots, and system details if needed.

@behdad
Copy link
Contributor

behdad commented Nov 13, 2015

Then this definitely needs to be reported to freetype-devel and followed up.

@bastik
Copy link

bastik commented Nov 13, 2015

In ftview, you can use the shortcut 'h' to toggle hinting. I noticed that for Noto, it makes no difference, if hinting is on or off, both renderings look the same. If you turn hinting off for Droid though, it gets blurry, similar to how it looks for Noto in either setting.

In other words, it seems as if the hinting is completely disabled for the FreeType rendering of Noto.

Then this definitely needs to be reported to freetype-devel and followed up.

Who is this directed at?

@sebastic
Copy link
Author

On 13-11-15 16:05, bastik wrote:

In ftview, you can use the shortcut 'h' to toggle hinting. I noticed that for Noto, it makes no difference, if hinting is on or off, both renderings look the same. If you turn hinting off for Droid though, it gets blurry, similar to how it looks for Noto in either setting.

In other words, it seems as if the hinting is completely disabled for the FreeType rendering of Noto.

The unhinted NotoSans-Regular.ttf is about a sharp as the DroidSans.ttf
included in JOSM.

Then this definitely needs to be reported to freetype-devel and followed up.

Who is this directed at?

Either of us I guess, so I started a thread on freetype-devel:

http://lists.nongnu.org/archive/html/freetype-devel/2015-11/msg00096.html

@marekjez86
Copy link
Contributor

Since this is handled within http://lists.nongnu.org/archive/html/freetype-devel/2015-11/msg00096.html I believe I can close it here. @sebastic please reopen if I'm wrong.

@bastik
Copy link

bastik commented Jan 31, 2016

marekjez86: It is not clear yet, if the broken hinting is caused by a bug in freetype or if the noto font needs to be improved. There was only one reply to the post on the freetype mailing list: A freetype developer mentioned his work on a hinted version of noto produced with ttfautohint (a software project he is also involved in).

I cannot tell if this work will be any help, but in the end, it would be great if the official noto releases were freetype-compatible in terms of hinting!

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

5 participants