Font API: Support for script-specific samples

This commit is contained in:
Raphael Michel
2020-02-01 13:46:50 +01:00
parent 6b2bc71be9
commit d37cc4f641
6 changed files with 22 additions and 5 deletions

View File

@@ -403,9 +403,12 @@
<img src="{% static 'pretixpresale/pdf/powered_by_pretix_white.png' %}" id="poweredby-white" class="sr-only">
{% for family, styles in fonts.items %}
{% for style, formats in styles.items %}
{% if "sample" not in style %}
<span class="preload-font" data-family="{{ family }}" data-style="{{ style }}">
giItT1WQy@!-/#
{% if "_sample" in styles %}{{ styles.sample }}{% endif %}
</span>
{% endif %}
{% endfor %}
{% endfor %}
{% endblock %}