We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 243e66a commit 480f387Copy full SHA for 480f387
vlib/gg/text_rendering.v
@@ -76,14 +76,13 @@ pub fn system_font_path() string {
76
}
77
78
79
- mut fm := os.execute('fc-match -v -s -b')
+ mut fm := os.execute("fc-match --format='%{file}\n' -s")
80
if fm.exit_code == 0 {
81
lines := fm.output.split('\n')
82
for l in lines {
83
- if l.contains('file:') && !l.contains('.ttc') {
84
- font := l.find_between('"', '"')
85
- debug_font_println('Using font "$font"')
86
- return font
+ if !l.contains('.ttc') {
+ debug_font_println('Using font "$l"')
+ return l
87
88
89
} else {
0 commit comments