Enumerate fonts

This commit is contained in:
Filip Sykala 2021-09-03 12:22:44 +02:00
parent 028f04f8a1
commit 84488ba6df
5 changed files with 177 additions and 7 deletions

View file

@ -19,6 +19,18 @@ class Emboss
public:
Emboss() = delete;
/// <summary>
/// Collect fonts registred inside OS
/// </summary>
static void get_font_list();
/// <summary>
/// OS dependent function to get location of font by its name
/// </summary>
/// <param name="font_face_name">Unique identificator for font</param>
/// <returns>File path to font when found</returns>
static std::optional<std::wstring> get_font_path(const std::wstring &font_face_name);
/// <summary>
/// keep information from file about font
/// </summary>
@ -35,10 +47,7 @@ public:
// user defined unscaled char space
int extra_char_space = 0;
// unscaled precision of lettter outline curve in conversion to lines
float flatness = 2.;
// enum class Align: center/left/right
// TODO: add enum class Align: center/left/right
};
/// <summary>