Skip to content

Commit c33df13

Browse files
committed
Added compatibility table for omitting glyphs
1 parent a75c7a3 commit c33df13

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/reference/v8.json

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,20 @@
183183
},
184184
"glyphs": {
185185
"type": "string",
186-
"doc": "A URL template for loading signed-distance-field glyph sets in PBF format.\n\nIf this property is set, any text in the `text-field` layout property is displayed in the font stack named by the `text-font` layout property based on glyphs located at the URL specified by this property. Otherwise, font faces will be determined by the `text-font` property based on the environment.\n\nThe URL must include:\n\n - `{fontstack}` - When requesting glyphs, this token is replaced with a comma separated list of fonts from a font stack specified in the `text-font` property of a symbol layer. \n\n - `{range}` - When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example, to load glyphs for the Unicode Basic Latin and Basic Latin-1 Supplement blocks, the range would be 0-255. The actual ranges that are loaded are determined at runtime based on what text needs to be displayed.\n\nThe URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",
187-
"example": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf"
186+
"doc": "A URL template for loading signed-distance-field glyph sets in PBF format.\n\nIf this property is set, any text in the `text-field` layout property is displayed in the font stack named by the `text-font` layout property based on glyphs located at the URL specified by this property. Otherwise, font faces will be determined by the `text-font` property based on the local environment.\n\nThe URL must include:\n\n - `{fontstack}` - When requesting glyphs, this token is replaced with a comma separated list of fonts from a font stack specified in the `text-font` property of a symbol layer. \n\n - `{range}` - When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example, to load glyphs for the Unicode Basic Latin and Basic Latin-1 Supplement blocks, the range would be 0-255. The actual ranges that are loaded are determined at runtime based on what text needs to be displayed.\n\nThe URL must be absolute, containing the [scheme, authority and path components](https://en.wikipedia.org/wiki/URL#Syntax).",
187+
"example": "https://demotiles.maplibre.org/font/{fontstack}/{range}.pbf",
188+
"sdk-support": {
189+
"basic functionality": {
190+
"js": "0.0.16",
191+
"android": "0.1.1",
192+
"ios": "0.1.0"
193+
},
194+
"omit to use local fonts": {
195+
"js": "https://github.com/maplibre/maplibre-gl-js/issues/3302",
196+
"android": "https://github.com/maplibre/maplibre-native/issues/165",
197+
"ios": "https://github.com/maplibre/maplibre-native/issues/165"
198+
}
199+
}
188200
},
189201
"transition": {
190202
"type": "transition",
@@ -1889,7 +1901,7 @@
18891901
"Open Sans Regular",
18901902
"Arial Unicode MS Regular"
18911903
],
1892-
"doc": "Fonts to use for displaying text. If the `glyphs` root property is specified, this array is joined together and interpreted as a font stack name. Otherwise, it is interpreted as a cascading fallback list of font names.",
1904+
"doc": "Fonts to use for displaying text. If the `glyphs` root property is specified, this array is joined together and interpreted as a font stack name. Otherwise, it is interpreted as a cascading fallback list of local font names.",
18931905
"requires": [
18941906
"text-field"
18951907
],
@@ -1903,8 +1915,13 @@
19031915
"js": "0.43.0",
19041916
"android": "6.0.0",
19051917
"ios": "4.0.0"
1918+
},
1919+
"local fonts": {
1920+
"js": "https://github.com/maplibre/maplibre-gl-js/issues/3302",
1921+
"android": "https://github.com/maplibre/maplibre-native/issues/165",
1922+
"ios": "https://github.com/maplibre/maplibre-native/issues/165"
19061923
}
1907-
},
1924+
}
19081925
"expression": {
19091926
"interpolated": false,
19101927
"parameters": [

0 commit comments

Comments
 (0)