gdi32: return the correct font type, ntmFlags and PitchAndFamily for Type1 fonts (fixes bug #5877)

Dmitry Timoshkov dmitry at codeweavers.com
Fri Sep 7 22:06:45 CDT 2007


"Mikolaj Zalewski" <mikolajz at google.com> wrote:

> As I wrote in Bugzilla for Photoshop to work with Type1 fonts after
> applying this patch one needs to reinstall Photoshop in a clean
> wineprefix - it seems that Photoshop caches some font data.

> +            /* check for the presence of the 'CFF ' table to check if the font is Type1 */
> +            tmp_size = 0;
> +            if (pFT_Load_Sfnt_Table && !pFT_Load_Sfnt_Table(ft_face, 0x43464620, 0, NULL, &tmp_size))
> +            {
> +                TRACE("Font %s/%p is OTF Type1\n", wine_dbgstr_a(file), font_data_ptr);
> +                face->ntmFlags = NTM_PS_OPENTYPE;
> +            }

Please use a symbolic name instead of 0x43464620. FreeType provides TTAG_CFF,
or you can define it on your own using FT_MAKE_TAG.

-- 
Dmitry.



More information about the wine-devel mailing list