From e6a80a40644c2702c460f9f589d0fec949671a74 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=B3=E5=85=88?= Date: Wed, 3 Aug 2022 17:00:05 +0800 Subject: [PATCH] Fix embedded bitmap glyph data not stripped --- .../com/google/typography/font/tools/sfnttool/SfntTool.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/java/src/com/google/typography/font/tools/sfnttool/SfntTool.java b/java/src/com/google/typography/font/tools/sfnttool/SfntTool.java index af1f0e00b..51b4f7c9e 100644 --- a/java/src/com/google/typography/font/tools/sfnttool/SfntTool.java +++ b/java/src/com/google/typography/font/tools/sfnttool/SfntTool.java @@ -147,6 +147,10 @@ public void subsetFontFile(File fontFile, File outputFile, int nIters) removeTables.add(Tag.LTSH); removeTables.add(Tag.DSIG); removeTables.add(Tag.vhea); + // Embedded monochrome or grayscale bitmap glyph data + removeTables.add(Tag.EBDT); + removeTables.add(Tag.EBLC); + removeTables.add(Tag.EBSC); // AAT tables, not yet defined in sfntly Tag class removeTables.add(Tag.intValue(new byte[]{'m', 'o', 'r', 't'})); removeTables.add(Tag.intValue(new byte[]{'m', 'o', 'r', 'x'}));