Phil Endecott wrote: > Denis Oliver Kropp wrote: >> Phil Endecott wrote: >>> Dear All, >>> >>> It seems that I have to pass glyph indices, not characters, when I >>> call IDirectFBFont_GetKerning(). >>> >>> Assuming that this is intended, how should I convert from a character >>> to a glyph index? I can see that this is done by the internal >>> function dfb_font_decode_character(), but I don't see how to access >>> that from an application. >>> >>> There is probably something simple that I am missing.... >> >> GetKerning() should get characters, not indices. Maybe it's broken? > > That's what I was wondering; DrawString seems to pass indices when it > calls GetKerning, and I can't see any conversion happening on the path > from the "outside world" to GetKerning. But I may be missing > something. Can you investigate?
I sent an URL to the fix in my previous mail. This time from mailing list: New commits: http://git.directfb.org/?p=core/DirectFB.git;a=commit;h=6850da1757bc6b8a32859ed131b7289317f1e87c commit 6850da1757bc6b8a32859ed131b7289317f1e87c Author: Denis Oliver Kropp <[EMAIL PROTECTED]> Date: Sat Oct 13 01:00:40 2007 +0200 Translate characters to indices in IDirectFBFont::GetKerning(). src/media/idirectfbfont.c | 32 +++++++++++++++++++++++++------- 1 files changed, 25 insertions(+), 7 deletions(-) -- Best regards, Denis Oliver Kropp .------------------------------------------. | DirectFB - Hardware accelerated graphics | | http://www.directfb.org/ | "------------------------------------------" _______________________________________________ directfb-dev mailing list [email protected] http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-dev
