Remove VectorTileGlyph, VectorTileFace, IndexedFaces, Faces and glyph related parts of vector_tile.proto. Refs #274.
This commit is contained in:
@@ -12,8 +12,6 @@
|
||||
|
||||
namespace llmr {
|
||||
|
||||
class VectorTileGlyph;
|
||||
|
||||
class GlyphAtlas {
|
||||
public:
|
||||
|
||||
|
||||
@@ -42,7 +42,6 @@ private:
|
||||
GlyphAtlas& glyphAtlas;
|
||||
GlyphStore &glyphStore;
|
||||
SpriteAtlas &spriteAtlas;
|
||||
Faces faces;
|
||||
Placement placement;
|
||||
};
|
||||
|
||||
|
||||
@@ -83,38 +83,9 @@ public:
|
||||
uint32_t extent = 4096;
|
||||
std::vector<std::string> keys;
|
||||
std::vector<Value> values;
|
||||
std::vector<std::string> faces;
|
||||
std::map<std::string, std::map<Value, Shaping>> shaping;
|
||||
};
|
||||
|
||||
class VectorTileGlyph {
|
||||
public:
|
||||
VectorTileGlyph();
|
||||
VectorTileGlyph(pbf data);
|
||||
|
||||
uint32_t id = 0;
|
||||
|
||||
// A signed distance field of the glyph with a border of 3 pixels.
|
||||
std::string bitmap;
|
||||
|
||||
// Glyph metrics
|
||||
GlyphMetrics metrics;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, const VectorTileGlyph& glyph);
|
||||
|
||||
class VectorTileFace {
|
||||
public:
|
||||
VectorTileFace(pbf data);
|
||||
|
||||
std::string name;
|
||||
std::string family;
|
||||
std::string style;
|
||||
std::vector<VectorTileGlyph> glyphs;
|
||||
};
|
||||
|
||||
std::ostream& operator<<(std::ostream&, const VectorTileFace& face);
|
||||
|
||||
class VectorTile {
|
||||
public:
|
||||
VectorTile();
|
||||
@@ -122,7 +93,6 @@ public:
|
||||
VectorTile& operator=(VectorTile&& other);
|
||||
|
||||
std::map<std::string, const VectorTileLayer> layers;
|
||||
std::map<std::string, const VectorTileFace> faces;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -43,8 +43,6 @@ struct Glyph {
|
||||
};
|
||||
|
||||
typedef std::map<uint32_t, Glyph> GlyphPositions;
|
||||
typedef std::map<std::string, GlyphPositions> Faces;
|
||||
typedef std::vector<const GlyphPositions *> IndexedFaces;
|
||||
|
||||
class GlyphPlacement {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user