freetype-devel
[Top][All Lists]
Advanced

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

Re: [ft-devel] Make FT_GlyphSlot_Embolden standard API?


From: Chia I Wu
Subject: Re: [ft-devel] Make FT_GlyphSlot_Embolden standard API?
Date: Mon, 30 May 2005 18:30:02 +0800
User-agent: Mutt/1.5.9i

On Mon, May 30, 2005 at 03:24:30PM +0800, Chia I Wu wrote:
> gray2 and gray4 are not supported now.  I'll see if I can add support to them.
> If I can't, I'll submit a patch to update the documentation :)
Ok, this patch should fix the problem.  Instead of supporting gray[24]
directly, convertion from gray[24] to gray8 is done before emboldening.


Changelog:

* include/freetype/ftbitmap.h (FT_Bitmap_Embolden): Fix typos.
Update documentaion a little.

* include/freetype/ftoutline.h (FT_Outline_Embolden): Fix typos.

* src/base/ftbitmap.c (FT_Bitmap_Embolden): Add support for bitmap of
pixel_mode FT_PIXEL_MODE_GRAY2 or FT_PIXEL_MODE_GRAY4.
When xstr is larger than 8 and bitmap is of pixel_mode
FT_PIXEL_MODE_MONO, set xstr to 8 instead of returning error.

-- 
Regards,
olv

Attachment: ft2-embolden-gray24.patch
Description: Text document


reply via email to

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