add is italic check for font file

This commit is contained in:
Filip Sykala 2022-01-06 11:29:16 +01:00
parent 82ee1c5e4a
commit b1b8eee3c9
4 changed files with 82 additions and 81 deletions

View file

@ -102,6 +102,14 @@ public:
const char * text,
const FontProp &font_prop);
/// <summary>
/// Read information from naming table of font file
/// search for italic (or oblique), bold italic (or bold oblique)
/// </summary>
/// <param name="font">Selector of font</param>
/// <returns>True when the font description contains italic/obligue otherwise False</returns>
static bool is_italic(Font &font);
/// <summary>
/// Project 2d point into space
/// Could be plane, sphere, cylindric, ...