[Top][All Lists]

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

[ft] Rendering text centered vertically

From: Alexander Cohen
Subject: [ft] Rendering text centered vertically
Date: Sat, 01 Jul 2006 15:20:44 -0400


I've gotten to a point where i have no problems rendering text on a chosen baseline. I think i have a good understanding of how freetype2 works. I can't seem to get my head around how i could render text centered in a bounding box.

I can get the bounding box of a string text i need to render. It seems to me like i'd need to get the number of pixels between the bbox.yMax and the baseline of the complete string i need to render in order to render the text centered in a bbox that is not the bbox of the text i want to render.

Any help is appreciated.



reply via email to

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