mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-10 16:51:49 +08:00
Fix of bad font glyph shape
This commit is contained in:
parent
59fc9328f4
commit
d2da63db41
@ -452,7 +452,8 @@ std::optional<Emboss::Glyph> priv::get_glyph(const stbtt_fontinfo &font_info, in
|
||||
std::reverse(pts.begin(), pts.end());
|
||||
glyph_polygons.emplace_back(pts);
|
||||
}
|
||||
glyph.shape = Emboss::heal_shape(glyph_polygons);
|
||||
if (!glyph_polygons.empty())
|
||||
glyph.shape = Emboss::heal_shape(glyph_polygons);
|
||||
return glyph;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user