Move per glyph line offset to 1/3 of line height.

This commit is contained in:
Filip Sykala - NTB T15p 2023-08-07 17:39:46 +02:00
parent 7df988dd2d
commit 88cc4d1385

View File

@ -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<float> line_centers(count_lines);
for (size_t i = 0; i < count_lines; ++i)
line_centers[i] = static_cast<float>(first_line_center - i * line_height_mm);