summaryrefslogtreecommitdiff
path: root/vcl/inc/font
diff options
context:
space:
mode:
authorKhaled Hosny <khaled@aliftype.com>2022-09-16 14:46:27 +0200
committerخالد حسني <khaled@aliftype.com>2022-09-19 13:38:17 +0200
commit8453d7ea1ff5b2b93196ed4b4bf430d6c574a7cb (patch)
tree205718ecb4b1224fe334aff41c96d8696593b8f6 /vcl/inc/font
parentba164651bbdbde1b8a4ae3495b845ebc13b01bad (diff)
vcl: Add PhysicalFontFace::UnitsPerEm()
Change-Id: I9239085aabe450499193e74ac91d6a16437545c4 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140124 Tested-by: Jenkins Reviewed-by: خالد حسني <khaled@aliftype.com>
Diffstat (limited to 'vcl/inc/font')
-rw-r--r--vcl/inc/font/PhysicalFontFace.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/inc/font/PhysicalFontFace.hxx b/vcl/inc/font/PhysicalFontFace.hxx
index 75133503e8af..303976c59776 100644
--- a/vcl/inc/font/PhysicalFontFace.hxx
+++ b/vcl/inc/font/PhysicalFontFace.hxx
@@ -138,6 +138,8 @@ public:
const ColorPalette& GetColorPalette(size_t) const;
std::vector<ColorLayer> GetGlyphColorLayers(sal_GlyphId) const;
+ uint32_t UnitsPerEm() const { return hb_face_get_upem(GetHbFace()); }
+
virtual hb_face_t* GetHbFace() const;
virtual hb_blob_t* GetHbTable(hb_tag_t) const
{