[ft-devel] How to get the position of a glyph without rendering it

2010-10-19 Thread Albert Astals Cid
Hi, at the moment i am doing FT_Load_Glyph(face, ...) FT_Render_Glyph(slot, ...) int x = -slot-bitmap_left; int y = slot-bitmap_top; int w = slot-bitmap.width; int h = slot-bitmap.rows; I would like to get a rough idea of x, y, w, h before calling FT_Render_Glyph so that if certain conditions

Re: [ft-devel] How to get the position of a glyph without rendering it

2010-10-19 Thread mpsuzuki
Hi, On Wed, 20 Oct 2010 01:29:29 +0100 Albert Astals Cid aa...@kde.org wrote: That code works fine for most of the fonts i tried but now i have encountered a case in which round(-glyphMetrics-horiBearingX / 64.0); is -2 and -slot-bitmap_left; is 26 Could you tell me any sample fonts to