diff options
Diffstat (limited to 'include/core/SkFontHost.h')
-rw-r--r-- | include/core/SkFontHost.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/core/SkFontHost.h b/include/core/SkFontHost.h index cb56772..eabaedf 100644 --- a/include/core/SkFontHost.h +++ b/include/core/SkFontHost.h @@ -262,6 +262,16 @@ public: static void SetSubpixelOrder(LCDOrder order); static LCDOrder GetSubpixelOrder(); + + /////////////////////////////////////////////////////////////////////////// + + /** + * Return the number of font units per em. + * + * @param fontID the font to query. + * @return the number of font units per em or 0 on error. + */ + static uint32_t GetUnitsPerEm(SkFontID fontID); }; #endif |