Skip to main content

font (glyphs)

glyphsThe style attribute provides aURLTemplate for loadingPBFFormattedSDFset. How to use it is as follows:

"http://***/vt_map/font/{fontstack}/{range}.pbf"

URLThe template should contain two tokens:

  • {fontstack} when requestedglyphs, the token will be replaced by the symbol layer’stext-fontA comma-separated list of fonts from the font stack specified in the property.
  • {range} when requestedglyphs, this token will be replaced by256indivualUnicodeCode point range. For example, to loadUnicode Basic LatinandBasic Latin-1 Supplementpieceglyph, the range should be0-255。 The actual range loaded is determined at runtime based on the text that needs to be displayed.