From f726b20e56e8b1106dfde0bf8d575c73e83957c4 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 25 Jul 2006 01:02:27 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20347073=20=E2=80=93=20Allow=20empty=20GPOS?= =?UTF-8?q?=20table?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2006-07-24 Behdad Esfahbod Bug 347073 – Allow empty GPOS table * pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList): Don't err on empty GPOS/GSUB tables. --- src/harfbuzz-open.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/harfbuzz-open.c b/src/harfbuzz-open.c index b3c1bcb07..e836df1ea 100644 --- a/src/harfbuzz-open.c +++ b/src/harfbuzz-open.c @@ -241,11 +241,16 @@ FT_Error _HB_OPEN_Load_ScriptList( HB_ScriptList* sl, (void)FILE_Seek( cur_offset ); } + /* Empty tables are harmless and generated by fontforge. + * See http://bugzilla.gnome.org/show_bug.cgi?id=347073 + */ +#if 0 if ( sl->ScriptCount == 0 ) { error = HB_Err_Invalid_SubTable; goto Fail; } +#endif return FT_Err_Ok;