Skip to content

Commit

Permalink
Remove emoji tables
Browse files Browse the repository at this point in the history
  • Loading branch information
liZe committed Aug 30, 2021
1 parent cb97228 commit 32eb7c2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions weasyprint/document.py
Original file line number Diff line number Diff line change
Expand Up @@ -1329,6 +1329,9 @@ def write_pdf(self, target=None, zoom=1, attachments=None, finisher=None):
for glyph in ttfont['glyf'].glyphs:
ttfont['glyf'][glyph] = (
ttFont.getTableModule('glyf').Glyph())
for table_name in ('CBDT', 'CBLC', 'SVG '):
if table_name in ttfont:
del ttfont[table_name]
output_font = io.BytesIO()
ttfont.save(output_font)
content = output_font.getvalue()
Expand Down

0 comments on commit 32eb7c2

Please sign in to comment.