Enumerate fonts

This commit is contained in:
Filip Sykala 2021-09-03 12:22:44 +02:00
parent 028f04f8a1
commit 84488ba6df
5 changed files with 177 additions and 7 deletions

View file

@ -54,8 +54,7 @@ TEST_CASE("Add TriangleMeshes", "[MeshBoolean]")
Polygons ttf2polygons(const char * font_name, char letter, float flatness = 1.f) {
auto font = Emboss::load_font(font_name);
if (!font.has_value()) return Polygons();
font->flatness = flatness;
return Emboss::letter2polygons(*font, letter);
return Emboss::letter2polygons(*font, letter, flatness);
}
#include "libslic3r/SVG.hpp"