From 239875cd54fb308b8b9be13c5352476d5e029af9 Mon Sep 17 00:00:00 2001 From: TakWolf Date: Sun, 21 Jul 2024 06:12:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9E=82=E7=9B=B4=E5=B8=83?= =?UTF-8?q?=E5=B1=80=E5=AD=97=E4=BD=93=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/services/font_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/services/font_service.py b/tools/services/font_service.py index 43721a9..9312a03 100644 --- a/tools/services/font_service.py +++ b/tools/services/font_service.py @@ -111,7 +111,7 @@ def _create_builder(self, width_mode: WidthMode, language_flavor: LanguageFlavor builder.font_metric.horizontal_layout.ascent = layout_param.ascent builder.font_metric.horizontal_layout.descent = layout_param.descent builder.font_metric.vertical_layout.ascent = math.ceil(layout_param.line_height / 2) - builder.font_metric.vertical_layout.descent = math.floor(layout_param.line_height / 2) + builder.font_metric.vertical_layout.descent = -math.floor(layout_param.line_height / 2) builder.font_metric.x_height = layout_param.x_height builder.font_metric.cap_height = layout_param.cap_height