Adjust stroke font baseline offset to better match 6.0.

Fixes https://gitlab.com/kicad/code/kicad/issues/13886
This commit is contained in:
Jeff Young 2023-02-23 13:47:43 +00:00
parent 4fb104b238
commit 4bb508eacf
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ static constexpr double UNDERLINE_POSITION_FACTOR = -0.16;
///< Scale factor for a glyph ///< Scale factor for a glyph
static constexpr double STROKE_FONT_SCALE = 1.0 / 21.0; 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; bool g_defaultFontInitialized = false;