Skip to content

Commit 4cc0cc5

Browse files
authored
Merge pull request #49 from lhupe/patch-1
Improve Linux font paths
2 parents 483bc92 + ab5830a commit 4cc0cc5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/findfonts.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@ else
2020
end
2121
function _font_paths()
2222
result = String[]
23-
for p in ("/usr/share/fonts", joinpath(homedir(), "/.fonts"), "/usr/local/share/fonts",)
23+
for p in ("/usr/share/fonts", joinpath(homedir(), ".fonts"), joinpath(homedir(), ".local/share/fonts"), "/usr/local/share/fonts",)
2424
if isdir(p)
25+
push!(result, p)
2526
add_recursive(result, p)
2627
end
2728
end

0 commit comments

Comments
 (0)