freetype-devel
[Top][All Lists]
Advanced

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

Re: [Devel] Enumerating font encoding


From: Werner LEMBERG
Subject: Re: [Devel] Enumerating font encoding
Date: Thu, 24 Jan 2002 14:40:37 +0100 (CET)

> In attempting to provide additional matching capabilities for
> applications, I need to enumerate the set of encoded chars in a
> font.  Using the existing FreeType API (FT_Get_Char_Index) is very
> expensive, even though I'm caching the result -- it takes a second
> or so to scan each font for glyphs from 0 to 0x200000.  Even a hint
> as to the maximum unicode value would obviously be very helpful, but
> some mechanism for listing the values instead would be best.

Can you make a suggestion how such an API should look like?  I can
imagine an FT_Get_{Prev,Next}_Char_Index function, returning the
previous and next character index of a given index.  If given a
negative value, the extrema of the whole charmap are returned.


    Werner



reply via email to

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