Fix of bad font glyph shape
This commit is contained in:
parent
59fc9328f4
commit
d2da63db41
1 changed files with 2 additions and 1 deletions
|
@ -452,7 +452,8 @@ std::optional<Emboss::Glyph> priv::get_glyph(const stbtt_fontinfo &font_info, in
|
||||||
std::reverse(pts.begin(), pts.end());
|
std::reverse(pts.begin(), pts.end());
|
||||||
glyph_polygons.emplace_back(pts);
|
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;
|
return glyph;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue