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

Go Noto Universal line spacing error #41

Open
skipperon opened this issue Jun 8, 2022 · 7 comments
Open

Go Noto Universal line spacing error #41

skipperon opened this issue Jun 8, 2022 · 7 comments

Comments

@skipperon
Copy link

Hi,
I think there is an error in line spacing in Go Noto Universal - it is unnaturally big. When I compare it to other fonts and even to NotoSansRegular.ttf (https://github.com/googlefonts/noto-fonts/tree/main/hinted/ttf/NotoSans/NotoSans-Regular.ttf) so the file that is taken to build latin fonts in go-noto-universal. In the picture attached I show the comparison of Line Spacing in MS Word of NotoSansRegular and GoNotoCurrent.ttf:
Comparison
It is not only the case of MS Word, I checked that in Linux in other programs, there is also unnaturally big line spacing.
It makes very uncomfortable to use this font and espacially in programs where I am not able to change it manually.

@thipokch
Copy link

thipokch commented Aug 19, 2022

I do agree that the line spacing is huge, but it usually happens when you merge multiple languages together. (Some language has extreme ascenders and descenders)

@almarklein
Copy link

Would this problem be avoided if using the regional fonts instead of the GoNotoCurrent?

@skipperon
Copy link
Author

skipperon commented Oct 27, 2022 via email

@stephen0z
Copy link

stephen0z commented May 28, 2023

For you information, it seems Microsoft overcome this by making "UI" (user interface) fonts:

segoeui.ttf - Segoe_UI

It's total number of glyphs is similar to a normal Segoe font, but the ascender and descender are narrower.

I also found that Android (or *nix) are quite smart on line spacing. Only with special glyphs like "Ǻ" appear in a line will that line's spacing changed, otherwise other lines will keep their spacing back to A-Z level. I found it by changing a font's ascender to "A", much lower than the height of "Ǻ", and Android increases the upper height to "Ǻ" automagically when it sees this glyph, ignoring my ascender setting in the font.

@satbyy
Copy link
Owner

satbyy commented May 28, 2023

There is already a code snippet in the repo which tweaks line spacing. I will add the command to an "FAQ" section so that people can adjust it as per their wish.

@skipperon
Copy link
Author

There is already a code snippet in the repo which tweaks line spacing. I will add the command to an "FAQ" section so that people can adjust it as per their wish.

@satbyy where is this code? I cannot find it...

@satbyy
Copy link
Owner

satbyy commented May 30, 2023

@skipperon It is near the end of helper.sh

# Copy line metrics from Noto Sans Regular
download_url "https://github.com/googlefonts/nototools/raw/main/nototools/substitute_linemetrics.py"
python3 ./substitute_linemetrics.py --output=../"$output" ../"$output" NotoSans-Regular.ttf

We copy the line metrics (ascender, descender, etc) from NotoSans-Regular to the final output font. User can pass whatever .ttf as last argument to above script instead of NotoSans-Regular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants