gg: bugfix on missing font file, remove last empty line in `v doctor`
parent
d91594dc6b
commit
1f21bc4b49
|
@ -102,8 +102,6 @@ fn (mut a App) collect_info() {
|
||||||
a.report_tcc_version('/var/tmp/tcc')
|
a.report_tcc_version('/var/tmp/tcc')
|
||||||
}
|
}
|
||||||
a.report_tcc_version('thirdparty/tcc')
|
a.report_tcc_version('thirdparty/tcc')
|
||||||
//
|
|
||||||
a.println('')
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct CmdConfig {
|
struct CmdConfig {
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
|
// Use of this source code is governed by an MIT license that can be found in the LICENSE file.
|
||||||
module gg
|
module gg
|
||||||
|
|
||||||
|
import os
|
||||||
import gx
|
import gx
|
||||||
import sokol
|
import sokol
|
||||||
import sokol.sapp
|
import sokol.sapp
|
||||||
|
@ -104,7 +105,7 @@ fn gg_init_sokol_window(user_data voidptr) {
|
||||||
// fb_h := sapp.height()
|
// fb_h := sapp.height()
|
||||||
// println('g.scale=$g.scale is_high_dpi=$is_high_dpi fb_w=$fb_w fb_h=$fb_h')
|
// 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.init_text {
|
||||||
if g.config.font_path != '' {
|
if g.config.font_path != '' && os.is_file( g.config.font_path ) {
|
||||||
// t := time.ticks()
|
// t := time.ticks()
|
||||||
g.ft = new_ft({
|
g.ft = new_ft({
|
||||||
font_path: g.config.font_path
|
font_path: g.config.font_path
|
||||||
|
|
Loading…
Reference in New Issue