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: Fri, 20 May 2005 14:18:36 +0800
User-agent: Mutt/1.5.8i

On Fri, May 20, 2005 at 06:15:15AM +0200, Werner LEMBERG wrote:
> 
> > > > As fontconfig and xft already have the code to "embolden" and
> > > > rely on FT_GlyphSlot_Embolden to do the real job, I think
> > > > FT_GlyphSlot_Embolden should be made standard API.  This is an
> > > > important feature for Chinese (maybe also Japanese and Korean)
> > > > users, as most Chinese fonts don't have a real bold style.
> > 
> > After some more inspection, I find there is already FT_Glyph for
> > glyph manipulation.  Then, why not
> > 
> >     FT_Glyph_Embolden
> >     FT_Glyph_Oblique
> > ?
> 
> Are these new structures?  Do you suggest them because you can't
> modify the public `FT_Glyph'?
They are new function calls.

We already have FT_Glyph_Translate to translate glyphs,
                FT_Glyph_Transform to transform glyphs,
                FT_Glyph_Stroke to stroke glyphs,
then why not
                FT_Glyph_Embolden to embolden glyphs?
> 
> > Also I tried to modify the embolden algorithm for outline glyph, and
> > it now uses similar algorithm as the one I use for bitmap glyph.
> > This is done because the old algorithm generates some artifact.
> 
> Aah, another user has reported problems.  Can you post the patch to
> the freetype-devel list, please?
Check the patch (algorithm only) in the attachment.

Attachment: ft2-ftsynth.patch
Description: Text document


reply via email to

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