From d03b25b0e5a821407f5fb2d3cb52a297affa7c08 Mon Sep 17 00:00:00 2001 From: Evezerest <50011306+Evezerest@users.noreply.github.com> Date: Tue, 26 Jul 2022 15:30:38 +0800 Subject: [PATCH] Update shape.py --- PPOCRLabel/libs/shape.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PPOCRLabel/libs/shape.py b/PPOCRLabel/libs/shape.py index 4e0b1f08..121e43b8 100644 --- a/PPOCRLabel/libs/shape.py +++ b/PPOCRLabel/libs/shape.py @@ -126,8 +126,7 @@ class Shape(object): color = self.select_line_color if self.selected else self.line_color pen = QPen(color) # Try using integer sizes for smoother drawing(?) - # no need, it casuses that font is too small in high-resolusion image - # pen.setWidth(max(1, int(round(2.0 / self.scale)))) + pen.setWidth(max(1, int(round(2.0 / self.scale)))) painter.setPen(pen) line_path = QPainterPath() -- GitLab