diff --git a/src/nanoemoji/colr_to_svg.py b/src/nanoemoji/colr_to_svg.py index 700b6897..9bbccc14 100644 --- a/src/nanoemoji/colr_to_svg.py +++ b/src/nanoemoji/colr_to_svg.py @@ -312,10 +312,6 @@ def glyph_region(ttfont: ttLib.TTFont, glyph_name: str) -> Rect: map_font_space_to_viewbox handles font +y goes up => svg +y goes down.""" width = ttfont["hmtx"][glyph_name][0] - if width == 0: - glyph = ttfont["glyf"][glyph_name] - if hasattr(glyph, "xMax"): # empty glyphs have no bbox attributes - width = glyph.xMax return Rect( 0, -ttfont["OS/2"].sTypoAscender,