diff --git a/Style.go b/Style.go index 109310f5..a878cec4 100644 --- a/Style.go +++ b/Style.go @@ -10,10 +10,15 @@ import ( // NOTE: PopFont has to be called // NOTE: Don't use PushFont. use StyleSetter instead func PushFont(font *FontInfo) bool { + if font == nil { + return false + } + if f, ok := extraFontMap[font.String()]; ok { imgui.PushFont(*f) return true } + return false }