Replies: 1 comment
-
The glyphs are probably not being rasterized with Y inverted. TGA stores images inverted compared to most formats, so you're probably using a TGA writer that doesn't correct for this, or the engine you're reading doesn't handle this correctly. It is not appropriate to change stb_truetype to fix this; either fix the TGA reader/writer, or write your own code to invert the image before writing it. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I managed to create a tga font atlas with the use of PackFontRange()
But the font glyphs are being rasterized with Y inverted
I noticed that the call to
stbtt_Rasterize
insidestbtt_MakeGlyphBitmapSubpixel
uses a hardcoded1
value forint invert
Is there an existing way to change this behavior, or is modifying the library's code required for getting that output?
Beta Was this translation helpful? Give feedback.
All reactions