freetype
[Top][All Lists]
Advanced

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

Re: [ft] FT_GlyphSlot_Embolden() undefined under Windows


From: Chia-I Wu
Subject: Re: [ft] FT_GlyphSlot_Embolden() undefined under Windows
Date: Mon, 6 Feb 2006 16:50:26 +0800
User-agent: Mutt/1.5.11

On Sat, Feb 04, 2006 at 05:23:55PM +0100, Werner LEMBERG wrote:
> > This is from where I picked FT_GlyphSlot_Embolden(); I was inquiring
> > for FT_Outline_Embolden sample...
> We don't have one :-) Anyone out there who uses it, probably posting a
> snippet?
It is as simple as:

FT_Load_Glyph( face, gindex, FT_LOAD_DEFAULT );
if ( face->slot->format == FT_GLYPH_FORMAT_OUTLINE )
        FT_Outline_Embolden( &slot->outline, strength );

Other outline related functions can be used in the same way.  Although
not documented, it is safe to manipulate the points of slot->outline
directly. (not 100% sure though :-)

It is not true for slot->bitmap btw.

-- 
Regards,
olv




reply via email to

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