diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2018-01-25 15:24:29 -0800 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2018-01-26 14:36:51 -0800 |
commit | ce429dcc1fce2a827e5c9462e3226c3bb04c6a39 (patch) | |
tree | 5eed851bef213b319289f70c3361826075570b02 /test/fixtures | |
parent | 306898d77bae63220b3a69191aaadef6da7e2fc5 (diff) | |
download | qtlocation-mapboxgl-ce429dcc1fce2a827e5c9462e3226c3bb04c6a39.tar.gz |
[core] don't force downloading of Open Sans fonts
When a SymbolLayer doesn't have a text-font defined, we automatically add Open Sans/Arial Unicode MS. However, when the SymbolLayer is only used for rendering icons, it doesn't have text-field defined either. In those cases, we still force downloading Open Sans/Arial Unicode MS during offline pack creation. If the user doesn't use this font, this change should save ~15MB and a few seconds in download time.
Diffstat (limited to 'test/fixtures')
-rw-r--r-- | test/fixtures/style_parser/font_stacks.json | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/fixtures/style_parser/font_stacks.json b/test/fixtures/style_parser/font_stacks.json index 07fe223d46..0ff3e936a8 100644 --- a/test/fixtures/style_parser/font_stacks.json +++ b/test/fixtures/style_parser/font_stacks.json @@ -12,6 +12,7 @@ "source": "source", "source-layer": "source-layer", "layout": { + "text-field": "a", "text-font": ["a"] } }, { @@ -20,6 +21,7 @@ "source": "source", "source-layer": "source-layer", "layout": { + "text-field": "a", "text-font": { "stops": [[0, ["a", "b"]]] } @@ -30,6 +32,7 @@ "source": "source", "source-layer": "source-layer", "layout": { + "text-field": "a", "text-font": { "stops": [[0, ["a", "b"]], [1, ["a", "b", "c"]]] } |