///|/ Copyright (c) Prusa Research 2021 - 2022 Filip Sykala @Jony01 ///|/ ///|/ PrusaSlicer is released under the terms of the AGPLv3 or higher ///|/ #ifndef slic3r_FontConfigHelp_hpp_ #define slic3r_FontConfigHelp_hpp_ #ifdef __linux__ #define EXIST_FONT_CONFIG_INCLUDE #endif #ifdef EXIST_FONT_CONFIG_INCLUDE #include namespace Slic3r::GUI { /// /// initialize font config /// Convert wx widget font to file path /// inspired by wxpdfdoc - /// https://github.com/utelle/wxpdfdoc/blob/5bdcdb9953327d06dc50ec312685ccd9bc8400e0/src/pdffontmanager.cpp /// /// Wx descriptor of font /// flag to reinitialize font list /// Font FilePath by FontConfig std::string get_font_path(const wxFont &font, bool reload_fonts = false); } // namespace Slic3r #endif // EXIST_FONT_CONFIG_INCLUDE #endif // slic3r_FontConfigHelp_hpp_