mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-19 00:42:18 +00:00
* A *lot* of import fixes for flatpak Aside, thank you @hadess for the majority of these fixes. You are the base point for a lot of issues fixed during the creation of this flatpak. * Use slic3r::load_string_file Boost 1.84 removed `boost::fs::load_string_file` so use the func located in Utils.hpp
23 lines
559 B
C++
23 lines
559 B
C++
#ifndef slic3r_Text_Shape_hpp_
|
|
#define slic3r_Text_Shape_hpp_
|
|
|
|
#include "libslic3r/TriangleMesh.hpp"
|
|
|
|
namespace Slic3r {
|
|
class TriangleMesh;
|
|
|
|
struct TextResult
|
|
{
|
|
TriangleMesh text_mesh;
|
|
double text_width;
|
|
};
|
|
|
|
extern std::vector<std::string> init_occt_fonts();
|
|
extern void load_text_shape(const char *text, const char *font, const float text_height, const float thickness, bool is_bold, bool is_italic, TextResult &text_result);
|
|
|
|
std::map<std::string, std::string> get_occt_fonts_maps();
|
|
|
|
}; // namespace Slic3r
|
|
|
|
#endif // slic3r_Text_Shape_hpp_
|