summaryrefslogtreecommitdiff
path: root/src/mbgl/util/i18n.hpp
diff options
context:
space:
mode:
authorChris Loer <chris.loer@gmail.com>2017-11-27 12:50:28 -0800
committerChris Loer <chris.loer@mapbox.com>2017-12-11 10:43:00 -0800
commitcb380064bb768c1a20d2260ac4a032dbcd3184fe (patch)
treee833b8e057b63c93626f0aea4804f926156bb8cd /src/mbgl/util/i18n.hpp
parent1661af1cb409505bb362e2274cb61f097ad25864 (diff)
downloadqtlocation-mapboxgl-cb380064bb768c1a20d2260ac4a032dbcd3184fe.tar.gz
[ios,macos] Darwin implementation of a CoreText-based LocalGlyphRasterizer.
- Changing font weight does not currently appear to be working. - Glyph metric extraction code not working; currently unused.
Diffstat (limited to 'src/mbgl/util/i18n.hpp')
-rw-r--r--src/mbgl/util/i18n.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/util/i18n.hpp b/src/mbgl/util/i18n.hpp
index 61c5a1ea96..b3960c743c 100644
--- a/src/mbgl/util/i18n.hpp
+++ b/src/mbgl/util/i18n.hpp
@@ -23,6 +23,10 @@ bool allowsIdeographicBreaking(const std::u16string& string);
by the given Unicode codepoint due to ideographic breaking. */
bool allowsIdeographicBreaking(char16_t chr);
+/** Conservative set of characters expected to have relatively fixed sizes and
+ advances */
+bool allowsFixedWidthGlyphGeneration(char16_t chr);
+
/** Returns whether any substring of the given string can be drawn as vertical
text with upright glyphs. */
bool allowsVerticalWritingMode(const std::u16string& string);