Skip to content

Commit

Permalink
[font] simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitkugler authored and whereswaldon committed Sep 25, 2024
1 parent 6a64242 commit 46915d6
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions font/font_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,9 @@ func TestMaxpAndHmtx(t *testing.T) {
}

func TestLoadCFF2(t *testing.T) {
b, err := td.Files.ReadFile("common/NotoSansCJKjp-VF.otf")
tu.AssertNoErr(t, err)

ft, err := ot.NewLoader(bytes.NewReader(b))
tu.AssertNoErr(t, err)
ld := readFontFile(t, "common/NotoSansCJKjp-VF.otf")

font, err := NewFont(ft)
font, err := NewFont(ld)
tu.AssertNoErr(t, err)

tu.Assert(t, font.cff2 != nil)
Expand Down

0 comments on commit 46915d6

Please sign in to comment.