Change test to use font from resources

This commit is contained in:
Filip Sykala 2022-03-02 14:31:56 +01:00
parent 2a62881c39
commit a000d12361
2 changed files with 2 additions and 1 deletions

View File

@ -126,7 +126,8 @@ TEST_CASE("Emboss text - Times MacOs", "[Emboss]") {
#include <libslic3r/Utils.hpp>
TEST_CASE("Emboss text", "[Emboss]")
{
std::string font_path = std::string(TEST_DATA_DIR) + "/fonts/NotoSans-Regular.ttf";
std::string resource_dir = std::string(TEST_DATA_DIR) + "/../../resources/";
std::string font_path = resource_dir + "fonts/NotoSans-Regular.ttf";
char letter = '%';
float flatness = 2.;