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

TrueType fonts don't match expected font size. #71

Open
Faeranne opened this issue Jul 11, 2019 · 2 comments
Open

TrueType fonts don't match expected font size. #71

Faeranne opened this issue Jul 11, 2019 · 2 comments

Comments

@Faeranne
Copy link

Faeranne commented Jul 11, 2019

Fonts appear to render with a much lower font size than the expected size. see below image.

Imgur

These are both suppose to be 12pt.

@Faeranne
Copy link
Author

The actual rendered font seems to be about 10px tall when the size is set to 12.

@ben-mkiv
Copy link
Collaborator

ben-mkiv commented Aug 7, 2019

for me they render multiplied by the gui scale factor (which for normal gui scaling is 2).
so fontSize(10) is double the size as in a text editor.
Guess i'll leave it as it is, you can still divide by 2 to fit the scaling of the OS

But due to the nature of how the TTF Font gets converted to a Bitmap Font you'll never archive the same visual appearance as in a text editor because the letter spacing might differ

Also i dont want to put much effort in that feature now as Minecraft 1.13+ uses LWJGL3 which has TTF support build in, so we should hope that OC gets ported soon ;)

I'll leave the bug open as a note to myself to merge to LWJGL3 TTF support when possible

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

No branches or pull requests

2 participants