diff --git a/src/gui/Font.h b/src/gui/Font.h index a824920..ee7cae8 100644 --- a/src/gui/Font.h +++ b/src/gui/Font.h @@ -13,7 +13,9 @@ namespace jes Font(); ~Font(); bool load(FT_Library ft, const char * fname, size_t size); + int get_line_height() { return round_up_26_6(m_face->size->metrics.height); } protected: + int round_up_26_6(int val) { return (val + 63) >> 6u; } FT_Face m_face; bool m_loaded; };