From 88cc4d1385517773c867971923db5f08ab72bf02 Mon Sep 17 00:00:00 2001 From: Filip Sykala - NTB T15p Date: Mon, 7 Aug 2023 17:39:46 +0200 Subject: [PATCH] Move per glyph line offset to 1/3 of line height. --- src/slic3r/GUI/TextLines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/TextLines.cpp b/src/slic3r/GUI/TextLines.cpp index 62f4bc4918..53fb3b954c 100644 --- a/src/slic3r/GUI/TextLines.cpp +++ b/src/slic3r/GUI/TextLines.cpp @@ -299,7 +299,7 @@ void TextLinesModel::init(const Transform3d &text_tr, m_model.reset(); m_lines.clear(); - double first_line_center = offset + this->offset + get_align_y_offset_in_mm(align, count_lines, ff, fp); + double first_line_center = this->offset + line_height_mm / 3 + get_align_y_offset_in_mm(align, count_lines, ff, fp); std::vector line_centers(count_lines); for (size_t i = 0; i < count_lines; ++i) line_centers[i] = static_cast(first_line_center - i * line_height_mm);