|
From: | Alexander Cohen |
Subject: | [ft] Rendering text centered vertically |
Date: | Sat, 01 Jul 2006 15:20:44 -0400 |
Hi,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. thanks Alex
[Prev in Thread] | Current Thread | [Next in Thread] |