mirror of
https://github.com/vlang/v.git
synced 2025-09-09 07:15:50 -04:00
os.font: return the "segoeui.ttf" font, if its file exists on Windows (#21655)
This commit is contained in:
parent
0b2edd0dd1
commit
ff865ea110
@ -28,6 +28,10 @@ pub fn default() string {
|
||||
return env_font
|
||||
}
|
||||
$if windows {
|
||||
if os.exists('C:\\Windows\\Fonts\\segoeui.ttf') {
|
||||
debug_font_println('Using font "C:\\Windows\\Fonts\\segoeui.ttf"')
|
||||
return 'C:\\Windows\\Fonts\\segoeui.ttf'
|
||||
}
|
||||
debug_font_println('Using font "C:\\Windows\\Fonts\\arial.ttf"')
|
||||
return 'C:\\Windows\\Fonts\\arial.ttf'
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user