FIX: the text gap is not correct. STUDIO-2518

Change-Id: I27dc8b62962ebe1aa2b4d54e50d68cf173eecd54
This commit is contained in:
zhimin.zeng 2023-03-21 21:05:24 +08:00 committed by Lane.Wei
parent bf08a0b2e2
commit 8ebd6cfc9e
3 changed files with 35 additions and 14 deletions

View file

@ -4,8 +4,14 @@
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, TriangleMesh& text_mesh);
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();