File tree 2 files changed +2
-1
lines changed
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,7 @@ function findfont(
129
129
bold:: Bool = false , # and this as well
130
130
additional_fonts:: String = " "
131
131
)
132
- (path_ft = get (FONT_CACHE, searchstring, nothing )) != = nothing && return path_ft
132
+ (font = get (FONT_CACHE, searchstring, nothing )) != = nothing && return font
133
133
font_folders = copy (fontpaths ())
134
134
135
135
isempty (additional_fonts) || pushfirst! (font_folders, additional_fonts)
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ face = FA.findfont("hack")
19
19
@test :size in propertynames (face)
20
20
@test repr (face) == " FTFont (family = Hack, style = Regular)"
21
21
@test Broadcast. broadcastable (face)[] == face
22
+ @test FA. get_path (face) == joinpath (@__DIR__ , " hack_regular.ttf" )
22
23
23
24
@test FA. ascender (face) isa Real
24
25
@test FA. descender (face) isa Real
You can’t perform that action at this time.
0 commit comments