summaryrefslogtreecommitdiff
path: root/include/llmr/text/glyph.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/llmr/text/glyph.hpp')
-rw-r--r--include/llmr/text/glyph.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llmr/text/glyph.hpp b/include/llmr/text/glyph.hpp
index 91531e24f3..e6138e712e 100644
--- a/include/llmr/text/glyph.hpp
+++ b/include/llmr/text/glyph.hpp
@@ -9,6 +9,11 @@
namespace llmr {
+typedef std::pair<uint16_t, uint16_t> GlyphRange;
+
+// Note: this only works for the BMP
+GlyphRange getGlyphRange(uint32_t glyph);
+
struct GlyphMetrics {
operator bool() const {
return width == 0 && height == 0 && advance == 0;