Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
t-bltg committed Oct 31, 2024
1 parent 461250f commit ceeaf52
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ext/FreeTypeExt.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions test/tst_freetype.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ceeaf52

Please sign in to comment.