1 #pragma once 2 3 #include <utility> 4 #include <cstdint> 5 #include <unordered_set> 6 #include <boost/functional/hash.hpp> 7 8 namespace mbgl { 9 10 using GlyphRange = std::pair<uint16_t, uint16_t>; 11 12 struct GlyphRangeHash { operator ()mbgl::GlyphRangeHash13 std::size_t operator()(const GlyphRange& glyphRange) const { 14 return boost::hash_value(glyphRange); 15 } 16 }; 17 18 using GlyphRangeSet = std::unordered_set<GlyphRange, GlyphRangeHash>; 19 20 constexpr uint32_t GLYPHS_PER_GLYPH_RANGE = 256; 21 constexpr uint32_t GLYPH_RANGES_PER_FONT_STACK = 256; 22 23 } // end namespace mbgl 24