Starchasers / OCGlasses

mod for minecraft and addon for Open Computers
zlib License
30 stars 17 forks source link

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

Open Faeranne opened 5 years ago

Faeranne commented 5 years ago

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 commented 5 years ago

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

ben-mkiv commented 4 years ago

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