freetype-devel
[Top][All Lists]
Advanced

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

[ft-devel] FTC_SBitCache_Lookup and manual bold/italic


From: Devin Heitmueller
Subject: [ft-devel] FTC_SBitCache_Lookup and manual bold/italic
Date: Fri, 16 Aug 2013 11:22:39 -0400

Hello there,

I'm in the process of doing some more glyph caching work on VLC.  I
originally converted it to use FTC_ImageCache_Lookup(), which was a
significant improvement, but then I discovered FTC_SBitCache_Lookup(),
which seems to work even better.

The challenge is that the existing VLC code supports manually applying
bold/italic for those fonts which don't natively support it.  With the
original code, this was done with FT_GlyphSlot_Embolden().  With my
new code that used the imagecache, I was able to get the same
functionality to work with FT_Bitmap_Embolden().

Now that I'm moving to using the SbitCache functionality, what's the
process for achieving the same effect?  As far as I can tell, because
I'm getting the actual rendered bitmap instead of the glyph I cannot
simply use the FT_Bitmap_Embolden() function.

I've got everything working except for this edge case (and the code
now performs *significantly* better), but I need to handle this case
in order for the improvements to be accepted upstream.

Any suggestions that you could offer would be greatly appreciated.

Thanks in advance,

Devin

-- 
Devin J. Heitmueller - Kernel Labs
http://www.kernellabs.com



reply via email to

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