freetype
[Top][All Lists]
Advanced

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

Re: [ft] Vertical Offset ( alignement) Texture atlas


From: Jérémy Masclaux
Subject: Re: [ft] Vertical Offset ( alignement) Texture atlas
Date: Wed, 12 Sep 2012 19:42:47 +0200

Hi

http://uppix.net/d/0/4/19378eda642219b3c6e62ad326431.png

Thank you !


Jérémy,


-----Message d'origine----- From: Werner LEMBERG
Sent: Wednesday, September 12, 2012 7:11 AM
To: address@hidden
Cc: address@hidden
Subject: Re: [ft] Vertical Offset ( alignement) Texture atlas


So my mean is to have the same result as this:

http://uppix.net/5/c/6/3f2437d78c4492e66fcacf8c2fdbc.bmp

Iʼm sure I miss a big fact about positioning.

I don't have time to read the source code, but looking at the above
image I assume that the rectangle size is predefined.  It seems that
all glyphs are scanned to find the smallest global bounding box.  This
process gets repeated until an input character size is found which
makes all characters fit into the given rectangles.  Then the largest
character is centered in the rectangle, and finally all other glyphs
are positioned using the same origin.


Werner



reply via email to

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