mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 05:05:56 +08:00
Fix left side offset from center of base line.
This commit is contained in:
parent
50f09a751b
commit
15af50d923
@ -1908,8 +1908,14 @@ PolygonPoints Emboss::sample_slice(const TextLine &slice, const BoundingBoxes &b
|
||||
samples[index] = create_sample(bbs[index], is_reverse);
|
||||
|
||||
// calc transformation for letters on the Left side from center
|
||||
shapes_x_cursor = 0;
|
||||
cursor = slice.start; // copy
|
||||
if (first_right_index < bbs.size()) {
|
||||
shapes_x_cursor = bbs[first_right_index].center().x();
|
||||
cursor = samples[first_right_index];
|
||||
}else{
|
||||
// only left side exists
|
||||
shapes_x_cursor = 0;
|
||||
cursor = slice.start; // copy
|
||||
}
|
||||
is_reverse = false;
|
||||
for (size_t index_plus_one = first_right_index; index_plus_one > 0; --index_plus_one) {
|
||||
size_t index = index_plus_one - 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user