Skip to content

Commit

Permalink
Merge pull request #141 from harfbuzz/hb-6.0.0
Browse files Browse the repository at this point in the history
Update to HarfBuzz 6.0.0
  • Loading branch information
khaledhosny authored Dec 17, 2022
2 parents b7a809d + cb902b6 commit 5c2ac24
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion harfbuzz
Submodule harfbuzz updated 257 files
16 changes: 9 additions & 7 deletions tests/test_uharfbuzz.py
Original file line number Diff line number Diff line change
Expand Up @@ -452,18 +452,19 @@ def message(msg):
assert pos == [0, 0, 0, 100, 0]
expected_messages = [
'start table GSUB',
'start lookup 0',
"start lookup 0 feature 'calt'",
'recursing to lookup 1 at 2',
'replacing glyph at 2 (single substitution)',
'replaced glyph at 2 (single substitution)',
'recursed to lookup 1',
'end lookup 0',
"end lookup 0 feature 'calt'",
'end table GSUB',
'start table GPOS',
'start lookup 0',
'kerning glyphs at 3,4',
"start lookup 0 feature 'kern'",
'try kerning glyphs at 3,4',
'kerned glyphs at 3,4',
'end lookup 0',
'tried kerning glyphs at 3,4',
"end lookup 0 feature 'kern'",
'end table GPOS',
]
assert messages == expected_messages
Expand All @@ -472,10 +473,11 @@ def message(msg):
[5, 4, 3, 2, 1], [5, 4, 1, 2, 1], [5, 4, 1, 2, 1],
[5, 4, 1, 2, 1], [5, 4, 1, 2, 1], [5, 4, 1, 2, 1],
[5, 4, 1, 2, 1], [5, 4, 1, 2, 1], [5, 4, 1, 2, 1],
[5, 4, 1, 2, 1], [5, 4, 1, 2, 1]]
[5, 4, 1, 2, 1], [5, 4, 1, 2, 1], [5, 4, 1, 2, 1]]
advances_trace = [[g.x_advance for g in pos] for pos in positions_trace if pos]
assert advances_trace == [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0], [0, 0, 0, 0, 0],
[0, 0, 0, 100, 0], [0, 0, 0, 100, 0], [0, 0, 0, 100, 0]]
[0, 0, 0, 100, 0], [0, 0, 0, 100, 0], [0, 0, 0, 100, 0],
[0, 0, 0, 100, 0]]

def test_message_func_return_false(self, blankfont):
# Glyph IDs 1, 2, 3, 4, 5 map to glyphs a, b, c, d, e.
Expand Down

0 comments on commit 5c2ac24

Please sign in to comment.