[Top][All Lists]

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

Re: [ft-devel] Kerning support in freetype

From: David Turner
Subject: Re: [ft-devel] Kerning support in freetype
Date: Thu, 24 Aug 2006 17:14:17 +0200
User-agent: Thunderbird 1.5 (Windows/20051201)

Hello Russel,

If freetype has already loaded all the pairs from the file, then cacheing
wouldn't be needed (unless you really need them all to emulate some api).

to be fair, caching might be a good idea, performance-wise. That's because
searching for kerning pair usually requires a binary search in the font file's
tables, while a cache would usually require a hash-table lookup, which
can be a lot faster.

but that's for the most extreme cases :-)


- David Turner
- The FreeType Project  (

3) returned kerning doesn't match Wndows one, probably due to 1).

Must be a bug.

I'm attaching my test program. Using FreeType from CVS it prints:

face Arial Regular has kerning
kerning between 32 and 65 is -2:0
kerning between 32 and 84 is -1:0
kerning between 70 and 44 is -3:0

which is a bit small for a 1200 pixels font face.

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 

reply via email to

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