hexland
hexland
Sent. Thank you for looking at it. Yes, the A & B are both generated from the same Typo lib. I generate a batch of characters (32-254) using the Typo...
So, my problem is this... I'm trying to implement an MSDF font renderer in my game engine. I'm using the Typography library to rasterize a TTF into a texture atlas....
Here's the guts of the loop I'm using to generate the glyphs. I implemented my own Atlas class (BinaryTreeAtlas) that builds multiple atlas pages ` Bounds bounds = typeface.Bounds; float...
I find the largest bounds of the typeface, and try to work out the offset of the glyph with respect to that bounding box - based on the width/height returned...
Thanks for that. I believe I have it working now. I was using the typeface.Bounds to calculate 'the largest bounding area' and then calculate the pixel scale value from there...
It makes no difference at the end of the day - the values were pretty much the same. I think I was most of the way there already - I...