Update Emboss font preview alignment (#8013)
* Fix style preview size per resolution (cherry picked from commit b67c4785f0d300b5615126ea1df1d518dd6d00b0) * Align font preview to left. (closer to font name) (cherry picked from commit eb9b8c0c2b112f0f7649e58f4f6d7977380b8442) --------- Co-authored-by: Filip Sykala - NTB T15p <Filip.Sykala@Prusa3D.cz>
This commit is contained in:
@ -42,12 +42,12 @@ void CreateFontStyleImagesJob::process(Ctl &ctl)
|
||||
// create image description
|
||||
StyleManager::StyleImage &image = m_images[index];
|
||||
BoundingBox &bounding_box = image.bounding_box;
|
||||
for (ExPolygon &shape : shapes)
|
||||
for (const ExPolygon &shape : shapes)
|
||||
bounding_box.merge(BoundingBox(shape.contour.points));
|
||||
for (ExPolygon &shape : shapes) shape.translate(-bounding_box.min);
|
||||
|
||||
// calculate conversion from FontPoint to screen pixels by size of font
|
||||
double scale = get_text_shape_scale(item.prop, *item.font.font_file);
|
||||
double scale = get_text_shape_scale(item.prop, *item.font.font_file) * m_input.ppm;
|
||||
scales[index] = scale;
|
||||
|
||||
//double scale = font_prop.size_in_mm * SCALING_FACTOR;
|
||||
|
||||
Reference in New Issue
Block a user