Use FTC_ImageCache_Lookup() in combination of FT_GlyphSlot_Embolden()

View: New views
2 Messages — Rating Filter:   Alert me  

Use FTC_ImageCache_Lookup() in combination of FT_GlyphSlot_Embolden()

by lunafox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I've read the ftview code to see how to synthesize bold weight from a regular TrueType font.
Generally FT_GlyphSlot_Embolden() is called after FT_Load_Glyph() and before rendering.
However, in my case, in order to speed up loading glyphs I call FTC_ImageCache_Lookup() instead, which returns a rendered FT_Glyph.

Is there any way to use both of them?

Regards,
lunafox

Re: Use FTC_ImageCache_Lookup() in combination of FT_GlyphSlot_Embolden()

by lunafox :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Or in other words, we do have the function FT_GlyphSlot_Embolden() to embolden an FT_GlyphSlot, but is there any way to implement a function FT_Glyph_Embolden() that emboldens an FT_Glyph by any chance?

lunafox wrote:
Hi,

I've read the ftview code to see how to synthesize bold weight from a regular TrueType font.
Generally FT_GlyphSlot_Embolden() is called after FT_Load_Glyph() and before rendering.
However, in my case, in order to speed up loading glyphs I call FTC_ImageCache_Lookup() instead, which returns a rendered FT_Glyph.

Is there any way to use both of them?

Regards,
lunafox