mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 23:39:01 +08:00
Add temporary test for win/mac
This commit is contained in:
parent
24207403ea
commit
482e510d7f
@ -94,6 +94,22 @@ Vec3d calc_hit_point(const igl::Hit &h, indexed_triangle_set &its)
|
||||
}
|
||||
} // namespace Private
|
||||
|
||||
TEST_CASE("Emboss text - Times MacOs", "[Emboss]") {
|
||||
|
||||
std::string font_path = "C:/Users/filip/Downloads/Times.ttc";
|
||||
char letter = 'C';
|
||||
float flatness = 2.;
|
||||
|
||||
auto font = Emboss::load_font(font_path.c_str());
|
||||
REQUIRE(font != nullptr);
|
||||
|
||||
std::optional<Emboss::Glyph> glyph = Emboss::letter2glyph(*font, letter, flatness);
|
||||
REQUIRE(glyph.has_value());
|
||||
|
||||
ExPolygons shape = glyph->shape;
|
||||
REQUIRE(!shape.empty());
|
||||
}
|
||||
|
||||
#include <libslic3r/Utils.hpp>
|
||||
TEST_CASE("Emboss text", "[Emboss]")
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user