* src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding.
FreeType only sets a default active encoding for Unicode.
This commit is contained in:
parent
5c402d97af
commit
79e3789f81
@ -1,3 +1,9 @@
|
||||
2017-06-13 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
* src/winfonts/winfnt.c (FNT_Face_Init): Don't set active encoding.
|
||||
|
||||
FreeType only sets a default active encoding for Unicode.
|
||||
|
||||
2017-06-13 Werner Lemberg <wl@gnu.org>
|
||||
|
||||
[cff, truetype] Integer overflows.
|
||||
|
@ -575,7 +575,8 @@ FT_BEGIN_HEADER
|
||||
/* <Note> */
|
||||
/* When a new face is created (either through @FT_New_Face or */
|
||||
/* @FT_Open_Face), the library looks for a Unicode charmap within */
|
||||
/* the list and automatically activates it. */
|
||||
/* the list and automatically activates it. If there is no Unicode */
|
||||
/* charmap, FreeType doesn't set an `active' charmap. */
|
||||
/* */
|
||||
/* <Also> */
|
||||
/* See @FT_CharMapRec for the publicly accessible fields of a given */
|
||||
|
@ -658,12 +658,6 @@ THE SOFTWARE.
|
||||
}
|
||||
|
||||
error = FT_CMap_New( &bdf_cmap_class, NULL, &charmap, NULL );
|
||||
|
||||
#if 0
|
||||
/* Select default charmap */
|
||||
if ( bdfface->num_charmaps )
|
||||
bdfface->charmap = bdfface->charmaps[0];
|
||||
#endif
|
||||
}
|
||||
|
||||
goto Exit;
|
||||
|
@ -413,12 +413,6 @@ THE SOFTWARE.
|
||||
}
|
||||
|
||||
error = FT_CMap_New( &pcf_cmap_class, NULL, &charmap, NULL );
|
||||
|
||||
#if 0
|
||||
/* Select default charmap */
|
||||
if ( pcfface->num_charmaps )
|
||||
pcfface->charmap = pcfface->charmaps[0];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -264,12 +264,6 @@
|
||||
charmap.encoding = FT_ENCODING_UNICODE;
|
||||
|
||||
error = FT_CMap_New( &pfr_cmap_class_rec, NULL, &charmap, NULL );
|
||||
|
||||
#if 0
|
||||
/* select default charmap */
|
||||
if ( pfrface->num_charmaps )
|
||||
pfrface->charmap = pfrface->charmaps[0];
|
||||
#endif
|
||||
}
|
||||
|
||||
/* check whether we have loaded any kerning pairs */
|
||||
|
@ -1482,15 +1482,6 @@
|
||||
|
||||
charmap->encoding = sfnt_find_encoding( charmap->platform_id,
|
||||
charmap->encoding_id );
|
||||
|
||||
#if 0
|
||||
if ( !root->charmap &&
|
||||
charmap->encoding == FT_ENCODING_UNICODE )
|
||||
{
|
||||
/* set 'root->charmap' to the first Unicode encoding we find */
|
||||
root->charmap = charmap;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -555,12 +555,6 @@
|
||||
|
||||
if ( clazz )
|
||||
error = FT_CMap_New( clazz, NULL, &charmap, NULL );
|
||||
|
||||
#if 0
|
||||
/* Select default charmap */
|
||||
if (root->num_charmaps)
|
||||
root->charmap = root->charmaps[0];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -394,12 +394,6 @@
|
||||
|
||||
if ( clazz )
|
||||
error = FT_CMap_New( clazz, NULL, &charmap, NULL );
|
||||
|
||||
#if 0
|
||||
/* Select default charmap */
|
||||
if ( root->num_charmaps )
|
||||
root->charmap = root->charmaps[0];
|
||||
#endif
|
||||
}
|
||||
}
|
||||
Exit:
|
||||
|
@ -859,10 +859,6 @@
|
||||
NULL );
|
||||
if ( error )
|
||||
goto Fail;
|
||||
|
||||
/* Select default charmap */
|
||||
if ( root->num_charmaps )
|
||||
root->charmap = root->charmaps[0];
|
||||
}
|
||||
|
||||
/* set up remaining flags */
|
||||
|
Loading…
Reference in New Issue
Block a user