commit | 2ec0cb8a7833c14679b9bd734d3336cee7c4cab5 | [log] [tgz] |
---|---|---|
author | Roderick Sheeter <rsheeter@google.com> | Wed May 07 11:01:07 2014 -0700 |
committer | Roderick Sheeter <rsheeter@google.com> | Wed May 07 11:01:07 2014 -0700 |
tree | d854b2484e1c3f895841a0085929055afc629df5 | |
parent | 47c5016d7f20363602601aa2624229482b5c2e50 [diff] [blame] |
Always remove DSIG, removed several options
diff --git a/woff2/font.cc b/woff2/font.cc index 2733708..42d908f 100644 --- a/woff2/font.cc +++ b/woff2/font.cc
@@ -173,4 +173,14 @@ return true; } +bool RemoveDigitalSignature(Font* font) { + std::map<uint32_t, Font::Table>::iterator it = + font->tables.find(kDsigTableTag); + if (it != font->tables.end()) { + font->tables.erase(it); + font->num_tables = font->tables.size(); + } + return true; +} + } // namespace woff2