From 4bb508eacf46897f16b10758ffc6b7b4d2267f2f Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 23 Feb 2023 13:47:43 +0000 Subject: [PATCH] Adjust stroke font baseline offset to better match 6.0. Fixes https://gitlab.com/kicad/code/kicad/issues/13886 --- common/font/stroke_font.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/font/stroke_font.cpp b/common/font/stroke_font.cpp index b246825f83..83e2636ba6 100644 --- a/common/font/stroke_font.cpp +++ b/common/font/stroke_font.cpp @@ -52,7 +52,8 @@ static constexpr double UNDERLINE_POSITION_FACTOR = -0.16; ///< Scale factor for a glyph static constexpr double STROKE_FONT_SCALE = 1.0 / 21.0; -static constexpr int FONT_OFFSET = -10; +///< Offset (in stroke font units) to move the origin to the baseline. +static constexpr int FONT_OFFSET = -8; bool g_defaultFontInitialized = false;