[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] Incomplete cmap table for platform 0 (Apple Unicode)
From: |
Werner LEMBERG |
Subject: |
Re: [ft-devel] Incomplete cmap table for platform 0 (Apple Unicode) |
Date: |
Mon, 01 Oct 2007 09:09:28 +0200 (CEST) |
> http://bugs.winehq.org/show_bug.cgi?id=9840 has a ttf font attached
> to it which can be perfectly displayed in Windows, but Wine is not
> able to actually show any character using this font, only 'c' is
> displayed. That's because Freetype selects first unicode cmap table
> which happens to be with platform id 0 (Apple Unicode), and that
> cmap table is incomplete (or truncated). cmap tables for other
> platforms (1 and 3) are good, and making Freetype ignore cmap with
> platform id 0 makes the font display properly in Wine's notepad.
>
> Attached is the hack that makes Freetype ignore cmaps with platform
> id 0.
>
> What Freetype developers think about this problem?
I don't like this. Why should FreeType discriminate Apple Unicode
cmaps? It's not FreeType's fault that there are buggy font editors
and careless font developers who don't check the correctness of its
products.
Anyway, I've fixed it differently in the CVS: There's now a loop for
searching a UCS-2 charmap similar to the loop for UCS-4; a (3,1)
charmap is now favoured over an Apple one.
Please test.
Werner