freetype-devel
[Top][All Lists]
Advanced

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

Re: autokerning (was [ft-devel] New FreeType proofing tool: ftdiff)


From: Behdad Esfahbod
Subject: Re: autokerning (was [ft-devel] New FreeType proofing tool: ftdiff)
Date: Tue, 03 Apr 2007 18:04:53 -0400

On Tue, 2007-04-03 at 03:46 -0400, David Turner wrote:
> > My question again. Why is it better to pass lsb/rsb knowledge to higher
> > level than to teach freetype to render a single word and provide an
> > interface for that?
> 
> There are several reasons not to do that in FreeType:
> 
> - the font engine doesn't do caching, so performance is going to suck
> - sophisticated text layout requires precise knowledge of these details anyway
> - what about all sophisticated effects like hollowing, texturing, embossing
>   and other stuff like that.
> 
> So in short, FreeType is neither a text layout or graphics library, and 
> shouldn't
> try to do this itself.
> 
> > Do we really need to replicate the same code in every application?
> > 
> In every library that does its own text layout, yes !

Hi David,

I'm not sure if I understand what these lsb/rsb stuff is.  Is there
anything here that cairo/pango should be doing that it's not already?

cheers
behdad


> An alternative would be to hack FT_Get_Kerning to return "adjusted" values, 
> but
> this would require implementing a rather complicated caching scheme within the
> engine if we don't want performance to suck horribly. Moreover, this is likely
> to break some libraries...
> 
> - David

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759







reply via email to

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