I'm trying to render text quad using texture generate by BitmapFontWriter
of libgdx
.
For the font I can get size
, PaddingTop
, PaddingRight
, PaddingBottom
, PaddingLeft
, LineHeight
, CapHeight
, Baseline
, Ascent
, Descent
.
For each glyph I can get u
, v
, width
, height
, x offset
, y offset
, x advance
The chars rendered are OPQZ[\\]^_`abcdefg你好,
. If I just render the quad. I get:
Q
, g
and the `
are definitely incorrect. The brackets and notdef are a little large.
The only thing that I find meaningful for me is y offset
. If I shift the quad with it, I get:
Q
is not changed at all. g
gets slightly better. Lots of them get worse.