-
-
Notifications
You must be signed in to change notification settings - Fork 418
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Question: Proper scaling and positioning with freetype #108
Comments
First of all, don't use I don't know what exactly you're trying to do but I think you might want to take a look at https://github.com/Chlumsky/msdf-atlas-gen and see if it maybe solves the exact same problem you're working on. |
thank you for your quick response
yeah i know, i used this command earlier
but i practically had the same problem as now
i store each image in a texture array, i don't use texture atlas. |
You can use a texture array, that's not a problem but you seem to have a hard time getting the positioning right, so I was thinking that you may want to use something that already has this solved. |
ok i will try msdf-atlas-gen. I'll let you know. thank's. |
i know this is not the right place to ask this question, but I need help.
this was the command I ended up using.
i used FreeType 2 to provide the kerning, size, etc.
Here is my result (Lato Font, 40px)
I highlighted the characters
Can you tell me how I can scale bitmaps or get the right metrics for rendering ? I mean, the character "H" should be a little wider
How can I maintain bitmap data along with generated textures
Here is a comparison of text in a web browser
Here's what my fragment shader looks like
This is the only progress I have made so far.
./msdfgen msdf -font Lato-Regular.ttf '72' -size 96 96 -pxrange 12 -autoframe -scale 5 -o ../basic-gl/H.png
btw thank you for your software !
The text was updated successfully, but these errors were encountered: