1 #include <mbgl/text/glyph.hpp> 2 3 namespace mbgl { 4 5 // Note: this only works for the BMP getGlyphRange(GlyphID glyph)6GlyphRange getGlyphRange(GlyphID glyph) { 7 unsigned start = (glyph/256) * 256; 8 unsigned end = (start + 255); 9 if (start > 65280) start = 65280; 10 if (end > 65535) end = 65535; 11 return { start, end }; 12 } 13 14 } // namespace mbgl 15