Add font family

Fix define macros
This commit is contained in:
Filip Sykala 2021-10-26 20:08:29 +02:00
parent b5a075ce4a
commit 8e1fb1e139
2 changed files with 28 additions and 9 deletions

View file

@ -54,12 +54,23 @@ struct FontProp
int line_gap = 0;
// Precision of lettter outline curve in conversion to lines
float flatness = 2.0;
// Height of letter [in mm]
float size_in_mm = 10;
// Z depth of text [in mm]
float emboss = 5;
//////
// Duplicit data to wxFontDescriptor
//////
// Height of letter [in mm],
// duplicit to wxFont::PointSize
float size_in_mm = 10;
// Define type of font
// duplicit to wxFont::Family
std::string family = "";
// TODO: add enum class Align: center/left/right
FontProp() = default;
};