freetype-devel
[Top][All Lists]
Advanced

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

[Devel] Embolden/Obliquing with cache


From: Ken Hancock
Subject: [Devel] Embolden/Obliquing with cache
Date: Wed, 13 Nov 2002 17:39:00 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2b) Gecko/20021107

I'm trying to implement embolding and obliquing using the new cache routines. During my rendering routine, I normally call FTC_SBitCache_Lookup and then render the bitmap into my destination bitmap.

For obliquing and embolding, I don't really require the cache -- it's done infrequently enough that using the cache for such a purpose would probably slow the system down by effectively reducing the cache size.

Obliquing can be done with a simple FT_Glyph_Transform and FT_Glyph_To_Bitmap.

Embolding is a bit more complex. FT_GlyphSlot_Embolden takes a FT_GlyphSlot while FTC_ImageCache_Lookup returns a FT_Glyph. Can I take advantage of the glyph cache and then somehow coerce an FT_Glyph into an FT_GlphySlot? Do I need to spin my own embolden?

Thanks in advance,

Ken





reply via email to

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