From f9e422dc4f757399ac1de69332211ac297dc0438 Mon Sep 17 00:00:00 2001 From: Ben Kiel Date: Fri, 30 Jan 2026 16:01:09 -0600 Subject: [PATCH] Include image rounding in the _round method Add image handling to the rounding process. --- Lib/fontParts/base/glyph.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/fontParts/base/glyph.py b/Lib/fontParts/base/glyph.py index 3414dbd0..0f67ea66 100644 --- a/Lib/fontParts/base/glyph.py +++ b/Lib/fontParts/base/glyph.py @@ -1465,6 +1465,7 @@ def round(self): - components - anchors - guidelines + - image """ self._round() @@ -1480,6 +1481,8 @@ def _round(self): anchor.round() for guideline in self.guidelines: guideline.round() + if self.image.data is not None: + image.round() self.width = normalizers.normalizeVisualRounding(self.width) self.height = normalizers.normalizeVisualRounding(self.height)