From b7d136d2057ccf04c7fe74cb682ed611e24d822d Mon Sep 17 00:00:00 2001 From: Filip Sykala Date: Wed, 22 Sep 2021 10:56:37 +0200 Subject: [PATCH] Fix for non windows build --- src/libslic3r/Emboss.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/libslic3r/Emboss.cpp b/src/libslic3r/Emboss.cpp index 82426faf8..8aac7e20a 100644 --- a/src/libslic3r/Emboss.cpp +++ b/src/libslic3r/Emboss.cpp @@ -371,7 +371,7 @@ FontList Emboss::get_font_list_by_folder() { } #else -Emboss::FontList Emboss::get_font_list() { +FontList Emboss::get_font_list() { // not implemented return {}; } @@ -472,12 +472,11 @@ std::optional Emboss::load_font(HFONT hfont) #endif // _WIN32 std::optional Emboss::letter2glyph(const Font &font, - int letter, - float flatness) + int letter, + float flatness) { auto font_info_opt = Privat::load_font_info(font); if (!font_info_opt.has_value()) return {}; - stbtt_fontinfo *font_info = &(*font_info_opt); return Privat::get_glyph(*font_info_opt, (int) letter, flatness); }