mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
gg: fix system_font_path on Linux (#12477)
This commit is contained in:
@@ -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 {
|
if fm.exit_code == 0 {
|
||||||
lines := fm.output.split('\n')
|
lines := fm.output.split('\n')
|
||||||
for l in lines {
|
for l in lines {
|
||||||
if l.contains('file:') {
|
if l.contains('file:') && !l.contains('.ttc') {
|
||||||
font := l.find_between('"', '"')
|
font := l.find_between('"', '"')
|
||||||
debug_font_println('Using font "$font"')
|
debug_font_println('Using font "$font"')
|
||||||
return font
|
return font
|
||||||
|
|||||||
Reference in New Issue
Block a user