2022-08-12 13:13:52 +00:00
|
|
|
#ifndef slic3r_Text_Shape_hpp_
|
|
|
|
#define slic3r_Text_Shape_hpp_
|
|
|
|
|
2023-12-21 09:09:19 +00:00
|
|
|
#include "libslic3r/TriangleMesh.hpp"
|
2022-08-12 13:13:52 +00:00
|
|
|
|
2023-12-21 09:09:19 +00:00
|
|
|
namespace Slic3r {
|
2023-03-21 13:05:24 +00:00
|
|
|
struct TextResult
|
|
|
|
{
|
|
|
|
TriangleMesh text_mesh;
|
|
|
|
double text_width;
|
|
|
|
};
|
|
|
|
|
2022-08-12 13:13:52 +00:00
|
|
|
extern std::vector<std::string> init_occt_fonts();
|
2023-03-21 13:05:24 +00:00
|
|
|
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);
|
2022-08-12 13:13:52 +00:00
|
|
|
|
2022-08-30 02:38:13 +00:00
|
|
|
std::map<std::string, std::string> get_occt_fonts_maps();
|
|
|
|
|
2022-08-12 13:13:52 +00:00
|
|
|
}; // namespace Slic3r
|
|
|
|
|
|
|
|
#endif // slic3r_Text_Shape_hpp_
|