Stop setting FC_SPACING from font hints. Theyre always wrong

This commit is contained in:
Keith Packard 2003-02-27 07:04:59 +00:00
parent 662b879681
commit 148656ed8b
1 changed files with 6 additions and 1 deletions

View File

@ -467,7 +467,12 @@ FcFreeTypeQuery (const FcChar8 *file,
if (!FcPatternAddString (pat, FC_SOURCE, (FcChar8 *) "FreeType")) if (!FcPatternAddString (pat, FC_SOURCE, (FcChar8 *) "FreeType"))
goto bail1; goto bail1;
#if 1 #if 0
/*
* don't even try this -- CJK 'monospace' fonts are really
* dual width, and most other fonts don't bother to set
* the attribute. Sigh.
*/
if ((face->face_flags & FT_FACE_FLAG_FIXED_WIDTH) != 0) if ((face->face_flags & FT_FACE_FLAG_FIXED_WIDTH) != 0)
if (!FcPatternAddInteger (pat, FC_SPACING, FC_MONO)) if (!FcPatternAddInteger (pat, FC_SPACING, FC_MONO))
goto bail1; goto bail1;