diff --git a/ext/FreeTypeExt.jl b/ext/FreeTypeExt.jl index ca3cb37a..79da1951 100644 --- a/ext/FreeTypeExt.jl +++ b/ext/FreeTypeExt.jl @@ -169,7 +169,7 @@ function find_font(searchstring::String; additional_fonts::String = "") # we can compare all four tuple elements of the score at once in order of importance: # 1. number of family match characters # 2. number of style match characters - # 3. is font a "regular" style variant? + # 3. is font a "regular" style variant ? # 4. the negative length of the font name, the shorter the better if (family_match_score = first(score)) > 0 && score > best_score best_fpath = fpath diff --git a/test/tst_freetype.jl b/test/tst_freetype.jl index 4c7f02c6..e0fd9f17 100644 --- a/test/tst_freetype.jl +++ b/test/tst_freetype.jl @@ -252,9 +252,7 @@ end mktempdir() do dir n = 100 fontfiles = map(1:n) do i - p = joinpath(dir, "hack_regular_$i.ttf") - cp(joinpath(FT_DIR, "hack_regular.ttf"), p) - p + cp(joinpath(FT_DIR, "hack_regular.ttf"), joinpath(dir, "hack_regular_$i.ttf")) end Threads.@threads for f in fontfiles fo = FTE.FTFont(f)