Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledhosny committed Jan 11, 2025
1 parent 036efe4 commit d09011b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/test_uharfbuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,6 +795,7 @@ def test_reference_table(self, blankfont):
blob = face.reference_table("head")
assert len(blob.data) == 54


class TestFont:
def test_get_glyph_extents(self, opensans):
# <TTGlyph name="A" xMin="0" yMin="0" xMax="1296" yMax="1468">
Expand Down Expand Up @@ -912,16 +913,15 @@ def test_get_layout_baseline(
value = blankfont.get_layout_baseline(baseline_tag, direction, script_tag, "")
assert value == expected_value

def test_get_style_value(
self, blankfont
):
def test_get_style_value(self, blankfont):
assert blankfont.get_style_value(hb.StyleTag.ITALIC) == 0.0
assert blankfont.get_style_value(hb.StyleTag.OPTICAL_SIZE) == 12.0
assert blankfont.get_style_value(hb.StyleTag.SLANT_ANGLE) == 0.0
assert blankfont.get_style_value(hb.StyleTag.SLANT_RATIO) == -0.0
assert blankfont.get_style_value(hb.StyleTag.WIDTH) == 100.0
assert blankfont.get_style_value(hb.StyleTag.WEIGHT) == 400.0


class TestShape:
@pytest.mark.parametrize(
"string, expected",
Expand Down

0 comments on commit d09011b

Please sign in to comment.