|
|
|
@ -1040,14 +1040,6 @@ |
|
|
|
|
( cur[0]->platform_id == TT_PLATFORM_APPLE_UNICODE && |
|
|
|
|
cur[0]->encoding_id == TT_APPLE_ID_UNICODE_32 ) ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_MAX_CHARMAP_CACHEABLE |
|
|
|
|
if ( cur - first > FT_MAX_CHARMAP_CACHEABLE ) |
|
|
|
|
{ |
|
|
|
|
FT_ERROR(( "find_unicode_charmap: UCS-4 cmap is found " |
|
|
|
|
"at too late position (%d)\n", cur - first )); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
face->charmap = cur[0]; |
|
|
|
|
return FT_Err_Ok; |
|
|
|
|
} |
|
|
|
@ -1062,14 +1054,6 @@ |
|
|
|
|
{ |
|
|
|
|
if ( cur[0]->encoding == FT_ENCODING_UNICODE ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_MAX_CHARMAP_CACHEABLE |
|
|
|
|
if ( cur - first > FT_MAX_CHARMAP_CACHEABLE ) |
|
|
|
|
{ |
|
|
|
|
FT_ERROR(( "find_unicode_charmap: UCS-2 cmap is found " |
|
|
|
|
"at too late position (%d)\n", cur - first )); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
face->charmap = cur[0]; |
|
|
|
|
return FT_Err_Ok; |
|
|
|
|
} |
|
|
|
@ -1111,17 +1095,7 @@ |
|
|
|
|
if ( cur[0]->platform_id == TT_PLATFORM_APPLE_UNICODE && |
|
|
|
|
cur[0]->encoding_id == TT_APPLE_ID_VARIANT_SELECTOR && |
|
|
|
|
FT_Get_CMap_Format( cur[0] ) == 14 ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_MAX_CHARMAP_CACHEABLE |
|
|
|
|
if ( cur - first > FT_MAX_CHARMAP_CACHEABLE ) |
|
|
|
|
{ |
|
|
|
|
FT_ERROR(( "find_unicode_charmap: UVS cmap is found " |
|
|
|
|
"at too late position (%d)\n", cur - first )); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
return cur[0]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return NULL; |
|
|
|
@ -3122,15 +3096,6 @@ |
|
|
|
|
{ |
|
|
|
|
if ( cur[0]->encoding == encoding ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_MAX_CHARMAP_CACHEABLE |
|
|
|
|
if ( cur - face->charmaps > FT_MAX_CHARMAP_CACHEABLE ) |
|
|
|
|
{ |
|
|
|
|
FT_ERROR(( "FT_Select_Charmap: requested charmap is found (%d), " |
|
|
|
|
"but in too late position to cache\n", |
|
|
|
|
cur - face->charmaps )); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
face->charmap = cur[0]; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
@ -3165,15 +3130,6 @@ |
|
|
|
|
{ |
|
|
|
|
if ( cur[0] == charmap ) |
|
|
|
|
{ |
|
|
|
|
#ifdef FT_MAX_CHARMAP_CACHEABLE |
|
|
|
|
if ( cur - face->charmaps > FT_MAX_CHARMAP_CACHEABLE ) |
|
|
|
|
{ |
|
|
|
|
FT_ERROR(( "FT_Set_Charmap: requested charmap is found (%d), " |
|
|
|
|
"but in too late position to cache\n", |
|
|
|
|
cur - face->charmaps )); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
face->charmap = cur[0]; |
|
|
|
|
return 0; |
|
|
|
|
} |
|
|
|
@ -3199,15 +3155,6 @@ |
|
|
|
|
|
|
|
|
|
FT_ASSERT( i < charmap->face->num_charmaps ); |
|
|
|
|
|
|
|
|
|
#ifdef FT_MAX_CHARMAP_CACHEABLE |
|
|
|
|
if ( i > FT_MAX_CHARMAP_CACHEABLE ) |
|
|
|
|
{ |
|
|
|
|
FT_ERROR(( "FT_Get_Charmap_Index: requested charmap is found (%d), " |
|
|
|
|
"but in too late position to cache\n", |
|
|
|
|
i )); |
|
|
|
|
return -i; |
|
|
|
|
} |
|
|
|
|
#endif |
|
|
|
|
return i; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|