AustinJ235 / basalt

A rust library that provides window creation, input handling, and most importantly a UI.
MIT License
149 stars 5 forks source link

incorrect vertical alignement of glyphs #20

Closed nxfs closed 3 years ago

nxfs commented 3 years ago

I've noted that the vertical glyphs seem not correctly aligned, this is especially visible in small fonts sizes. Running from the vanilla example with increased scale:

image

AustinJ235 commented 3 years ago

The code around text scaling isn't exactly ideal. Ilmenite currently has no concept of scale, so right now Bin calls for text of text_height * scale and then does some math (possibly incorrect) to fit it back down to 100% scale.

AustinJ235 commented 3 years ago

Change the math around this will be resolved when ilmenite is upgraded.