1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

gg: print a diagnostic message when a requested font file is not found

This commit is contained in:
Delyan Angelov 2020-12-07 21:28:41 +02:00
parent 1914bc790b
commit 0efdc7bbe8
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED

View File

@ -126,6 +126,10 @@ fn gg_init_sokol_window(user_data voidptr) {
}
// println('FT took ${time.ticks()-t} ms')
g.font_inited = true
} else {
if !exists {
eprintln('font file $g.config.font_path does not exist')
}
}
//
mut pipdesc := C.sg_pipeline_desc{}