Files
MapLibreParticleLab/src/mbgl/text/font_stack.hpp
Konstantin Käfer a88e58ef3a [core] use stale glyphs
Updating glyphs is still unsupported, and there's no good use case for doing so. When we're using a stale glyph PBF, and the fresh answer contains changed to that glyph, we will continue to use the old glyph.
2016-01-15 17:04:08 +01:00

26 lines
805 B
C++

#ifndef MBGL_TEXT_FONT_STACK
#define MBGL_TEXT_FONT_STACK
#include <mbgl/text/glyph.hpp>
#include <mbgl/util/vec.hpp>
namespace mbgl {
class FontStack {
public:
void insert(uint32_t id, const SDFGlyph &glyph);
const std::map<uint32_t, SDFGlyph> &getSDFs() const;
const Shaping getShaping(const std::u32string &string, float maxWidth, float lineHeight,
float horizontalAlign, float verticalAlign, float justify,
float spacing, const vec2<float> &translate) const;
void lineWrap(Shaping &shaping, float lineHeight, float maxWidth, float horizontalAlign,
float verticalAlign, float justify, const vec2<float> &translate) const;
private:
std::map<uint32_t, SDFGlyph> sdfs;
};
} // end namespace mbgl
#endif