summaryrefslogtreecommitdiff
path: root/misc/proto/glyphs.proto
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2017-12-13 15:32:48 +0100
committerKonstantin Käfer <mail@kkaefer.com>2017-12-13 16:06:54 +0100
commit8a95540a9394e2afbf73e72a058c607b0290508a (patch)
treed5cd1bfb15a22e7391445ceb16ffb9fc303b84b3 /misc/proto/glyphs.proto
parent88cafa8e32bcaf5b81765c3b47e45ab9d0b37fe1 (diff)
downloadqtlocation-mapboxgl-upstream/remove-unused-files.tar.gz
[build] Remove unused files, and cleanup directoriesupstream/remove-unused-files
Diffstat (limited to 'misc/proto/glyphs.proto')
-rw-r--r--misc/proto/glyphs.proto33
1 files changed, 33 insertions, 0 deletions
diff --git a/misc/proto/glyphs.proto b/misc/proto/glyphs.proto
new file mode 100644
index 0000000000..6930b47a2b
--- /dev/null
+++ b/misc/proto/glyphs.proto
@@ -0,0 +1,33 @@
+// Protocol Version 1
+
+package mapboxgl.glyphs;
+
+option optimize_for = LITE_RUNTIME;
+
+// Stores a glyph with metrics and optional SDF bitmap information.
+message glyph {
+ required uint32 id = 1;
+
+ // A signed distance field of the glyph with a border of 3 pixels.
+ optional bytes bitmap = 2;
+
+ // Glyph metrics.
+ required uint32 width = 3;
+ required uint32 height = 4;
+ required sint32 left = 5;
+ required sint32 top = 6;
+ required uint32 advance = 7;
+}
+
+// Stores fontstack information and a list of faces.
+message fontstack {
+ required string name = 1;
+ required string range = 2;
+ repeated glyph glyphs = 3;
+}
+
+message glyphs {
+ repeated fontstack stacks = 1;
+
+ extensions 16 to 8191;
+}