Skip to content

Commit

Permalink
gg: fix system_font_path on Linux (#12477)
Browse files Browse the repository at this point in the history
  • Loading branch information
kahsa committed Nov 16, 2021
1 parent bede058 commit 3f37ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/gg/text_rendering.v
Expand Up @@ -76,11 +76,11 @@ pub fn system_font_path() string {
}
}
}
mut fm := os.execute('fc-match -v')
mut fm := os.execute('fc-match -v -s -b')
if fm.exit_code == 0 {
lines := fm.output.split('\n')
for l in lines {
if l.contains('file:') {
if l.contains('file:') && !l.contains('.ttc') {
font := l.find_between('"', '"')
debug_font_println('Using font "$font"')
return font
Expand Down

0 comments on commit 3f37ab2

Please sign in to comment.