[general] moving ios and android project under ./platform folder

This commit is contained in:
Petr Pokorny
2020-12-20 12:38:56 +01:00
parent 8e759a51e4
commit 41f0be34e7
9877 changed files with 141 additions and 2889 deletions

14
src/mbgl/text/glyph.cpp Normal file
View File

@@ -0,0 +1,14 @@
#include <mbgl/text/glyph.hpp>
namespace mbgl {
// Note: this only works for the BMP
GlyphRange getGlyphRange(GlyphID glyph) {
unsigned start = (glyph/256) * 256;
unsigned end = (start + 255);
if (start > 65280) start = 65280;
if (end > 65535) end = 65535;
return { start, end };
}
} // namespace mbgl