freetype-devel
[Top][All Lists]
Advanced

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

Re: Fix for fonts with broken kerning tables


From: Werner LEMBERG
Subject: Re: Fix for fonts with broken kerning tables
Date: Sun, 05 Mar 2000 08:07:55 GMT

> > A client of mine ran into a problem with FT1.x kerning: for some
> > fonts that *do* have a format 0 kerning table there still seemed
> > to be no kerning.  The problem turned out to be easy & stupid: the
> > kern table in the font wasn't sorted, so the binary search didn't
> > work.
> > 
> > Obviously, the font is broken, but since those fonts are "out
> > there" I believe a fix to FT is a Good Thing.  And it doesn't need
> > to cost much: I can quickly check whether the table is sorted, and
> > only qsort the table if it isn't.  This will happen in
> > Subtable_Load_0().
> 
> It's really time to wr

Oops!  I want to say that it is really time to write a memo on all the
many undocumented features of TT -- that unsorted kerning works is yet
another one...


    Werner


reply via email to

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