From 2471e072d30c0b70fc60b264ebe0c12e2d6393f9 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Fri, 26 May 2023 19:57:49 +0200 Subject: [PATCH] Base line on third of ascent is better --- src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp index e1d28882c2..4b2f2ba5fd 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoEmboss.cpp @@ -1096,11 +1096,11 @@ bool get_line_height_offset(/* const*/ StyleManager &style_manager, double &line const FontProp &fp = style_manager.get_font_prop(); const FontFile &ff = *ff_ptr; - double half_ascent_shape_size = ff.infos[fp.collection_number.value_or(0)].ascent / 2.; + double third_ascent_shape_size = ff.infos[fp.collection_number.value_or(0)].ascent / 3.; int line_height_shape_size = get_line_height(ff, fp); // In shape size double scale = get_shape_scale(fp, ff); - line_offset_mm = half_ascent_shape_size * scale / SHAPE_SCALE; + line_offset_mm = third_ascent_shape_size * scale / SHAPE_SCALE; line_height_mm = line_height_shape_size * scale; if (line_height_mm < 0)