aboutsummaryrefslogtreecommitdiff
path: root/src/system
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-11-17 03:18:36 +0100
committerdec05eba <dec05eba@protonmail.com>2021-11-17 03:18:36 +0100
commit7bc821b434b2b736e7553c498d39e9b3536343f7 (patch)
treee47f1d1de595f845956ded801b2ef2f2605e4baa /src/system
parent71de2fd0d421006adbcd64c9d213819ff6218349 (diff)
Fix font glyph overlaps
Diffstat (limited to 'src/system')
-rw-r--r--src/system/Utf8.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/system/Utf8.cpp b/src/system/Utf8.cpp
index be9b2af..a416477 100644
--- a/src/system/Utf8.cpp
+++ b/src/system/Utf8.cpp
@@ -8,4 +8,8 @@ namespace mgl {
bool utf8_decode(const unsigned char *str, size_t size, uint32_t *decoded_codepoint, size_t *codepoint_length) {
return mgl_utf8_decode(str, size, decoded_codepoint, codepoint_length);
}
+
+ size_t utf8_get_start_of_codepoint(const unsigned char *str, size_t size, size_t offset) {
+ return mgl_utf8_get_start_of_codepoint(str, size, offset);
+ }
} \ No newline at end of file