summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@gnome.org>2006-07-25 01:02:27 +0000
committerBehdad Esfahbod <behdad@src.gnome.org>2006-07-25 01:02:27 +0000
commit83723181b018b2340864d661c9b4b7dabb854ade (patch)
tree300813671ff390d44d2014693d814b54062b2997
parentffe50c3b3fc4c50866d51fbafa7fff308b71b59b (diff)
downloadpango-83723181b018b2340864d661c9b4b7dabb854ade.tar.gz
Bug 347073 – Allow empty GPOS table
2006-07-24 Behdad Esfahbod <behdad@gnome.org> Bug 347073 – Allow empty GPOS table * pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList): Don't err on empty GPOS/GSUB tables.
-rw-r--r--ChangeLog7
-rw-r--r--pango/opentype/harfbuzz-open.c5
2 files changed, 12 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 6df11882..acacca48 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2006-07-24 Behdad Esfahbod <behdad@gnome.org>
+
+ Bug 347073 – Allow empty GPOS table
+
+ * pango/opentype/harfbuzz-open.c (_HB_OPEN_Load_ScriptList): Don't
+ err on empty GPOS/GSUB tables.
+
2006-07-19 Behdad Esfahbod <behdad@gnome.org>
* pango/pango-layout.c (pango_layout_get_extents): Improve docs.
diff --git a/pango/opentype/harfbuzz-open.c b/pango/opentype/harfbuzz-open.c
index b3c1bcb0..e836df1e 100644
--- a/pango/opentype/harfbuzz-open.c
+++ b/pango/opentype/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;