On Sun, Aug 13, 2006 at 08:26:24PM +0200, Hans Leidekker wrote:
Any word on this patch?
-Hans
Changelog Implement GetFontUnicodeRanges on top of fontconfig and freetype.
I wonder whether FcFreeTypeCharSet is what you really want here. It uses a lot of heuristics which almost certainly won't match what Windows does, so we're probably better off writing our own. A test (on say Arial) would be useful here.
Also note that even if you do use the Fc* functions you'll need to check that the pFc* ptrs are non-NULL before calling them.
Huw.
On Monday 14 August 2006 00:48, Huw Davies wrote:
I wonder whether FcFreeTypeCharSet is what you really want here. It uses a lot of heuristics which almost certainly won't match what Windows does, so we're probably better off writing our own. A test (on say Arial) would be useful here!
I wrote such a test and the returned ranges are not identical but they do largely overlap. You could reason that since an app is asking for supported glyphs in the first place, it likely also copes with missing glyphs. So not exactly matching Windows may be acceptable, if you look at this a relatively cheap interim solution.
Doing it ourselves will mean groveling inside font tables, right?
-Hans