gg: bugfix on missing font file, remove last empty line in `v doctor`

pull/6469/head
Delyan Angelov 2020-09-24 16:53:06 +03:00
parent d91594dc6b
commit 1f21bc4b49
2 changed files with 2 additions and 3 deletions

View File

@ -102,8 +102,6 @@ fn (mut a App) collect_info() {
a.report_tcc_version('/var/tmp/tcc')
}
a.report_tcc_version('thirdparty/tcc')
//
a.println('')
}
struct CmdConfig {

View File

@ -2,6 +2,7 @@
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
module gg
import os
import gx
import sokol
import sokol.sapp
@ -104,7 +105,7 @@ fn gg_init_sokol_window(user_data voidptr) {
// fb_h := sapp.height()
// println('g.scale=$g.scale is_high_dpi=$is_high_dpi fb_w=$fb_w fb_h=$fb_h')
// if g.config.init_text {
if g.config.font_path != '' {
if g.config.font_path != '' && os.is_file( g.config.font_path ) {
// t := time.ticks()
g.ft = new_ft({
font_path: g.config.font_path