freetype
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ft] Vertical Offset ( alignement) Texture atlas


From: Jérémy Masclaux
Subject: [ft] Vertical Offset ( alignement) Texture atlas
Date: Sat, 8 Sep 2012 11:42:27 +0200

Hi everyone.
 
At the moment, I work on personnal fontbaker like http://www.lmnopc.com/bitmapfontbuilder/  for my personnal culture.
 
So my mean is to have the same result as this :
 
 
I wrote a super crappy code and i have this result :
 
 
You can see i have no vertical alignement. So i try to use different Glyph metric values like startY  = (line+size-top); and I have this result :
 
 
My caracteres are aligned but too low.
 
I try another values like startY  = (line+size-top)+descent;  :
 
 
And is better but not good.
 
I’m sure I miss a big fact about positioning.
 
In attachement my font baker source code.
 
Can you help me ?  Sourire
 
 
Thanks and sorry for my poor english.
 
Ludovic.

Attachment: main.cpp
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]