[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ft-devel] FTC_ImageCache_Lookup and FT_GlyphSlot_Embolden
From: |
Devin Heitmueller |
Subject: |
[ft-devel] FTC_ImageCache_Lookup and FT_GlyphSlot_Embolden |
Date: |
Tue, 28 May 2013 13:58:17 -0400 |
Hello,
I'm in the process of converting an application over to using the
FreeType glyph caching functionality. So far it's had a huge
performance improvement, which is great. However I've run across an
edge case that I don't know how to deal with.
Right now the code calls FT_Load_Glyph() and then
FT_GlyphSlot_Embolden() if the style flags for the face don't support
bold or italic. However, that function makes use of a glyph slot and
once I cut over to using FTC_ImageCache_Lookup() I cannot use
FT_GlyphSlot_Embolden anymore.
Does anyone have any recommendations on how to achieve equivalent
functionality when using the image cache feature? Can anybody point
me to any code which demonstrates this use case?
You can see what the existing code looks like here:
http://git.videolan.org/?p=vlc.git;a=blob;f=modules/text_renderer/freetype.c;h=5d7ca655a83309ed841c2abf4092a337439eb88d;hb=c432a4e1866d4eaace985b987380a8a8b642425c#l2049
Thanks in advance!
Devin
--
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com
- [ft-devel] FTC_ImageCache_Lookup and FT_GlyphSlot_Embolden,
Devin Heitmueller <=