File: test_glyphs2.py

package info (click to toggle)
python-babelfont 3.0.6~ds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,740 kB
  • sloc: xml: 33,013; python: 5,762; makefile: 68
file content (7 lines) | stat: -rw-r--r-- 287 bytes parent folder | download
1
2
3
4
5
6
7
from babelfont import load


def test_load_many_axes():
    font = load("tests/data/Glyphs2ManyAxes.glyphs")
    assert font.masters[0].location == {'wght': 100, 'wdth': 100, 'opsz': 12, 'ital': 0}
    assert font.masters[1].location == {'wght': 100, 'wdth': 100, 'opsz': 12, 'ital': 1}