allow to select fonts family AND style in web interface

This commit is contained in:
Philipp Klaus
2018-01-03 21:40:22 +01:00
parent 6aada05b22
commit d1286f014e
2 changed files with 16 additions and 12 deletions

View File

@@ -49,7 +49,11 @@
<div class="chooser panel-body">
<label for="fontFamily">Font Family:</label>
<select class="form-control" id="fontFamily" onChange="preview()">
{% for font in fonts %}<option>{{font}}</option> {% endfor %}
{% for font_family_name in font_family_names %}
{% for font_style in fonts[font_family_name].keys() %}
<option>{{font_family_name}} ({{ font_style }})</option>
{% endfor %}
{% endfor %}
</select>
<label for="fontSize" >Font Size:</label>
<input id="fontSize" class="form-control" type="number" min="1" value="70" onChange="preview()" required>