Skip to content

Commit

Permalink
Add documentation for glyph URL tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
jfirebaugh committed Apr 7, 2017
1 parent a759d28 commit 09ef29b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions docs/style-spec/_generate/index.html
Expand Up @@ -617,6 +617,20 @@ <h2><a href='#glyphs' title='link to glyphs'>Glyphs</a></h2>
{% endhighlight %}
</div>
<% } %>
This URL template should include two tokens:
<ul>
<li><code>{fontstack}</code>
When requesting glyphs, this token is replaced with a comma separated list of fonts from a font
stack specified in the <a href="#layout-symbol-text-font"><code>text-font</code></a> property of
a symbol layer.
</li>
<li><code>{range}</code>
When requesting glyphs, this token is replaced with a range of 256 Unicode code points. For example,
to load glyphs for the <a href="https://en.wikipedia.org/wiki/Unicode_block">Unicode Basic Latin and
Basic Latin-1 Supplement blocks</a>, the range would be <code>0-255</code>. The actual ranges that
are loaded are determined at runtime based on what text needs to be displayed.
</li>
</ul>
</p>
</div>

Expand Down

0 comments on commit 09ef29b

Please sign in to comment.