From fc743a58262c801a12afc7efbfac1585d9050740 Mon Sep 17 00:00:00 2001 From: Werner Lemberg Date: Fri, 18 Mar 2011 19:54:15 +0100 Subject: [PATCH] Store `loca' table format in SFNT structure. --- src/ttfautohint.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ttfautohint.c b/src/ttfautohint.c index cfaf30d..ce3401a 100644 --- a/src/ttfautohint.c +++ b/src/ttfautohint.c @@ -57,6 +57,7 @@ typedef struct SFNT_ { FT_ULong num_table_infos; FT_ULong glyf_idx; /* this subfont's `glyf' SFNT table index */ FT_ULong loca_idx; /* this subfont's `loca' SFNT table index */ + FT_Byte loca_format; /* `indexToLocFormat' from `head' table */ } SFNT; /* our font object */ @@ -335,7 +336,9 @@ TA_sfnt_split_into_SFNT_tables(SFNT* sfnt, break; } - if (tag == TTAG_glyf) + if (tag == TTAG_head) + sfnt->loca_format = buf[51]; + else if (tag == TTAG_glyf) sfnt->glyf_idx = j; else if (tag == TTAG_loca) sfnt->loca_idx = j; -- 2.11.4.GIT