From f4632ac6be3b20d68f1ecd3f412e1a8d2df45e4a Mon Sep 17 00:00:00 2001 From: Julius Krumbiegel Date: Thu, 4 Apr 2024 21:15:32 +0200 Subject: [PATCH] fix test --- src/types.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types.jl b/src/types.jl index 47aad08..c40f2a5 100644 --- a/src/types.jl +++ b/src/types.jl @@ -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)