summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYoung Hahn <young@mapbox.com>2014-05-29 05:37:30 -0400
committerYoung Hahn <young@mapbox.com>2014-05-29 05:37:30 -0400
commitf48999dc13fec3fa024f9faa13b4d697a417fa41 (patch)
tree9d65c2ace57c2c71dbe34d201529e743be7cf087 /src
parentd5349f9cd31f60914dcacb3a8f540a1eb47c5790 (diff)
downloadqtlocation-mapboxgl-f48999dc13fec3fa024f9faa13b4d697a417fa41.tar.gz
Treat out of range glyphs as belonging to 0-127 for now.
Diffstat (limited to 'src')
-rw-r--r--src/text/glyph.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/text/glyph.cpp b/src/text/glyph.cpp
index 039e3bc36e..99e0169ca6 100644
--- a/src/text/glyph.cpp
+++ b/src/text/glyph.cpp
@@ -95,7 +95,10 @@ GlyphRange getGlyphRange(uint32_t glyph) {
if (glyph <= 65279) return { 65279, 65279 }; // Specials
if (glyph <= 65519) return { 65280, 65519 }; // Halfwidth and Fullwidth Forms
if (glyph <= 65533) return { 65520, 65533 }; // Specials
- return { 0, 0 };
+ // fprintf(stderr, "Glyph out of range %u\n", glyph);
+ // If glyph is out of range request basic latin for now...
+ // TODO: null range or way to prevent any range from being used at all?
+ return { 0, 127 };
}
}