[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ft-devel] freetype on mac os X question/curious comments.
From: |
suzuki toshiya |
Subject: |
Re: [ft-devel] freetype on mac os X question/curious comments. |
Date: |
Thu, 19 Dec 2013 17:00:26 +0900 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130518 Icedove/17.0.5 |
Hi,
I guess it is related with the handling of Suitcase format font.
Please let me check.
Regards,
mpsuzuki
On 12/19/2013 03:47 PM, Hin-Tak Leung wrote:
> Hi Werner,
>
> I seem to recall that you don't have much access to Mac OS X; nonetheless, I
> wonder if you have an idea what's the context of two curious comments in some
> source code I came across with (it is the cairo bridge code in R, if you want
> to know).
>
> This concerns Mac OS X's shipping version of freetype - it has
> two comments about broken index, and also swapped styles.
>
> ==================
> /* some FreeType versions have broken index support,
> fall back to index 0 */
> if (!FT_New_Face(ft_library,
> (const char *) file, index, &face) ||
> (index && !FT_New_Face(ft_library,
> (const char *) file, 0, &face))) {
> FcFontSetDestroy (fs);
>
> #ifdef __APPLE__
> /* FreeType is broken on OS X in that face index
> is often wrong (unfortunately even for Helvetica!)
> - we try to find the best match through enumeration.
> And italic and bold are swapped */
> if (style == 2) style = 1; else if (style == 1) style = 2;
> if (face->num_faces > 1 &&
> (face->style_flags & 3) != style) {
> FT_Face alt_face;
> int i = 0;
> while (i < face->num_faces)
> if (!FT_New_Face(ft_library,
> (const char *) file,
> ============================
>
> The background is just that I will at some point attempt to rebuild that
> bridge with up-to-date version of freetype, and wonder if it is important.
>
> Hin-Tak
>
> _______________________________________________
> Freetype-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/freetype-devel