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

FontSize 12 has smaller line height than fontsize 11 and 14. #729

Open
Taschenbuch opened this issue Aug 16, 2022 · 0 comments
Open

FontSize 12 has smaller line height than fontsize 11 and 14. #729

Taschenbuch opened this issue Aug 16, 2022 · 0 comments

Comments

@Taschenbuch
Copy link
Contributor

I have a font size slider to change the font size of my modules text. it felt off for font size 12. 12 looks smaller than 11:

grafik

fonts are created via:

GameService.Content.GetFont(ContentService.FontFace.Menomonia, ContentService.FontSize.SizeX, ContentService.FontStyle.Regular);
with X = 8, ..., 36

So i debugged it. Result:

font.Name and font.LineHeight for all fontSizes:
"fonts\menomonia\menomonia-8-regular" 11
"fonts\menomonia\menomonia-11-regular" 15
"fonts\menomonia\menomonia-12-regular" 13 <-- should be rather 15-18
"fonts\menomonia\menomonia-14-regular" 18
"fonts\menomonia\menomonia-16-regular" 20
"fonts\menomonia\menomonia-18-regular" 20
"fonts\menomonia\menomonia-20-regular" 25
"fonts\menomonia\menomonia-22-regular" 29
"fonts\menomonia\menomonia-24-regular" 29
"fonts\menomonia\menomonia-32-regular" 36
"fonts\menomonia\menomonia-34-regular" 38
"fonts\menomonia\menomonia-36-regular" 40

checking the files in blish core revealed that the line height for 12-regular is 13, but for 12-bold and 12-italic it is 15. So the correct line hight should be probably 15 for 12-regular.
grafik

22-regular and 18-regular have the same issue:
grafik

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

1 participant