mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
fonts: fix so it does not try for RobotoMonoMono.ttf (#6507)
This commit is contained in:
parent
defa9c1d00
commit
2fd6c05445
@ -234,7 +234,7 @@ fn get_font_path_variant(font_path string, variant FontVariant) string {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mono {
|
.mono {
|
||||||
if fpath.ends_with('-Regular') {
|
if !fpath.ends_with('Mono-Regular') && fpath.ends_with('-Regular') {
|
||||||
fpath = fpath.replace('-Regular', 'Mono-Regular')
|
fpath = fpath.replace('-Regular', 'Mono-Regular')
|
||||||
} else if fpath.to_lower().starts_with('arial') {
|
} else if fpath.to_lower().starts_with('arial') {
|
||||||
// Arial has no mono variant
|
// Arial has no mono variant
|
||||||
@ -248,6 +248,6 @@ fn get_font_path_variant(font_path string, variant FontVariant) string {
|
|||||||
|
|
||||||
fn debug_font_println(s string) {
|
fn debug_font_println(s string) {
|
||||||
$if debug_font? {
|
$if debug_font? {
|
||||||
println(s)
|
println(s)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user