Пример #1
0
def test_font_manager_weight_normalization():
    font = afm.AFM(
        BytesIO(AFM_TEST_DATA.replace(b"Weight Bold\n", b"Weight Custom\n")))
    assert fm.afmFontProperty("", font).weight == "normal"
Пример #2
0
def test_font_manager_weight_normalization():
    font = afm.AFM(BytesIO(
        AFM_TEST_DATA.replace(b"Weight Bold\n", b"Weight Custom\n")))
    assert fm.afmFontProperty("", font).weight == "normal"