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: david turner
Subject: Re: [ft] FT_GlyphSlot_Embolden() undefined under Windows
Date: Mon, 06 Feb 2006 10:07:05 +0100
User-agent: Thunderbird 1.5 (Windows/20051201)

Chia-I Wu a écrit :
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.

  
I confirm that, once loaded, you can transform/distort/embolden the outline if you
want to. You should not *free* it however with FT_Done_Outline, because its
pointers might point to arrays owned by a distinct object (e.g. FT_GlyphLoader
objects)

As for slot->bitmap, you shouldn't do anything with them, except read them, since
its buffer address can point to a memory-mapped file directly.

Hope this helps,

- David

***********************************************************************************
Information contained in this email message is confidential and may be privileged, and is intended only for use of the individual or entity named above. If the reader of this message is not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please immediately notify the address@hidden and destroy the original message.
***********************************************************************************

reply via email to

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