Fix for non windows build

This commit is contained in:
Filip Sykala 2021-09-22 10:56:37 +02:00
parent cbd0a27f13
commit b7d136d205

View File

@ -371,7 +371,7 @@ FontList Emboss::get_font_list_by_folder() {
} }
#else #else
Emboss::FontList Emboss::get_font_list() { FontList Emboss::get_font_list() {
// not implemented // not implemented
return {}; return {};
} }
@ -472,12 +472,11 @@ std::optional<Emboss::Font> Emboss::load_font(HFONT hfont)
#endif // _WIN32 #endif // _WIN32
std::optional<Emboss::Glyph> Emboss::letter2glyph(const Font &font, std::optional<Emboss::Glyph> Emboss::letter2glyph(const Font &font,
int letter, int letter,
float flatness) float flatness)
{ {
auto font_info_opt = Privat::load_font_info(font); auto font_info_opt = Privat::load_font_info(font);
if (!font_info_opt.has_value()) return {}; if (!font_info_opt.has_value()) return {};
stbtt_fontinfo *font_info = &(*font_info_opt);
return Privat::get_glyph(*font_info_opt, (int) letter, flatness); return Privat::get_glyph(*font_info_opt, (int) letter, flatness);
} }