[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] is it possible to retrieve whole kerning table?
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] is it possible to retrieve whole kerning table? |
Date: |
Sat, 14 Jan 2006 15:46:03 +0100 (CET) |
> >I am trying to figure out how to implement WIN32 GetKerningPairs[1]
> >function in Wine. Unfortunately, I can't find a similar function
> >in freetype API. There is FT_Get_Kerning, but in order to build a
> >whole table I would need to know all the kerning pairs in a font,
> >or brute-force check all combinations :)
>
> Yes, current FreeType2 does not provide the functions like Win32
> GetKerningPairs(). I think, such functions require large memory
> allocation to load whole of kern subtable. Due to memory alignment
> and byte order (Win32 struct KERNINGPAIR looks native byte order -
> the size and byte order is exactly same among all platforms?),
> passing the pointer to the memory image of kern subtable is not
> enough. We have to rewrite all entries explicitly.
I have the feeling that such a function doesn't belong to FreeType but
should be added one level higher. Alternatively, if you think that
the FreeType level is essential, a module or service could be added
which can then be easily disabled during compilation.
BTW, right now I'm working on restructuring the make process to
provide a top-level configuration file which should simplify the
addition and removal of modules considerably.
Werner