FreeTypeFont character size inconsistent

Anything libgdx related goes here!

FreeTypeFont character size inconsistent

Postby captainflyaway » Thu Mar 15, 2018 4:27 pm

Hey all!

I am creating 2 Bitmap fonts using 2 different sizes.

Result: Some characters appear bigger on the smaller font. On the larger font the characters are drawn as expected. Why?!
sprite.PNG
sprite.PNG (916 Bytes) Viewed 207 times


EDIT: I tested other fonts, they work fine so I think the font is faulty. This seems very odd to me as it is an official google font (and it is working on bigger sizes).
--TitilliumWeb SemiBold
Thank you!
captainflyaway
 
Posts: 189
Joined: Mon Feb 20, 2017 7:52 am

Re: FreeTypeFont character size inconsistent

Postby captainflyaway » Sun Mar 18, 2018 9:08 pm

Okay 2nd issue:

I am using a font now that is definetly working. (I tested it)

I am adding labels to a WidgetGroup and this group to a ScrollPane (and the ScrollPane to the stage)

When changing the ScrollPanes position, some characters are higher (or lower) or not drawn completely. (same as the picture above)

What am I missing?!
captainflyaway
 
Posts: 189
Joined: Mon Feb 20, 2017 7:52 am


Return to Libgdx

Who is online

Users browsing this forum: dsgraham and 1 guest