Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrumbiegel committed Apr 4, 2024
1 parent 7d527e2 commit f4632ac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -190,8 +190,8 @@ function kerning(glyphspec1, glyphspec2, face::FTFont)
i1 = glyph_index(face, glyphspec1)
i2 = glyph_index(face, glyphspec2)
kerning2d = Ref{FreeType.FT_Vector}()
@lock face.lock begin
err = FT_Get_Kerning(face, i1, i2, FreeType.FT_KERNING_DEFAULT, kerning2d)
err = @lock face.lock begin
FT_Get_Kerning(face, i1, i2, FreeType.FT_KERNING_DEFAULT, kerning2d)
end
# Can error if font has no kerning! Since that's somewhat expected, we just return 0
err != 0 && return Vec2f(0)
Expand Down

0 comments on commit f4632ac

Please sign in to comment.