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

pull/7189/head
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
1 changed files with 4 additions and 0 deletions

View File

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