mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
FIX: the text gap is not correct. STUDIO-2518
Change-Id: I27dc8b62962ebe1aa2b4d54e50d68cf173eecd54
This commit is contained in:
parent
bf08a0b2e2
commit
8ebd6cfc9e
3 changed files with 35 additions and 14 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue