Files
MapLibreParticleLab/src/text/glyph.cpp
Konstantin Käfer bf9435a2c4 remove outdated comment
[skip ci]
2014-10-08 15:59:05 +02:00

15 lines
308 B
C++

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