mirror of
https://gitlab.freedesktop.org/freetype/freetype.git
synced 2026-05-07 19:18:02 +02:00
* src/sfnt/ttload.c (TT_Load_Names): applied a small work-around to
manage fonts containing a broken name table (e.g. "hya6gb.ttf")
This commit is contained in:
parent
9e0ad41a8f
commit
4afc52152b
1 changed files with 6 additions and 0 deletions
|
|
@ -987,6 +987,12 @@
|
|||
|
||||
/* check the 'storageOffset' field */
|
||||
storageOffset = names->storageOffset;
|
||||
|
||||
/* some broken asian fonts have a storage offset whose value is */
|
||||
/* 12*numNameRecords. We deal with them here.. */
|
||||
if ( storageOffset == 12 * names->numNameRecords )
|
||||
storageOffset += 6;
|
||||
|
||||
if ( storageOffset < (FT_ULong)( 6 + 12 * names->numNameRecords ) ||
|
||||
table_len <= storageOffset )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue