mirror of
https://github.com/reactos/reactos.git
synced 2026-06-20 17:26:01 +08:00
[FREETYPE] HACK: Verify we have format 4 for tt_cmap4_char_map_binary (#8649)
[FREETYPE] HACK: Verify the cmap format 4 is used in the function "tt_cmap4_char_map_binary" in ttcmap.c before proceeding. Otherwise issue debug message. CORE-12549
This commit is contained in:
15
sdk/lib/3rdparty/freetype/src/sfnt/ttcmap.c
vendored
15
sdk/lib/3rdparty/freetype/src/sfnt/ttcmap.c
vendored
@@ -1233,6 +1233,21 @@
|
||||
FT_UInt gindex = 0;
|
||||
FT_Byte* p;
|
||||
|
||||
#ifdef __REACTOS__
|
||||
static FT_UInt bWarnOnce = 0;
|
||||
/* FIXME: HACK for ReactOS not updating fonts when new font copied
|
||||
* over existing one. Verify that the table number is 4. CORE-12549 */
|
||||
if (TT_PEEK_USHORT(cmap->data) != 4)
|
||||
{
|
||||
if (!bWarnOnce)
|
||||
{
|
||||
FT_ERROR(( "Bad cmap table number. Probable update font error in file\n"
|
||||
"'%s'\nPlease reboot and try again.\n", __FILE__ ));
|
||||
bWarnOnce++;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
p = cmap->data + 6;
|
||||
num_segs2 = FT_PAD_FLOOR( TT_PEEK_USHORT( p ), 2 );
|
||||
|
||||
Reference in New Issue
Block a user