mark下知识点:
tab切换过程中 字体发生变化
起初按照常规设置属性 切换后 通过ttfConfig来修改字体属性
local lbl_title = cc.ui.UILabel.new({UILabelType = 2, text = "1v1限时对抗赛", size = Res.font_size_t8, align = display.CENTER, color = Res.color_c4,font = Res.font_pingf_regular})
修改
ttfConfig.fontFilePath=Res.font_pingf_bold
ttfConfig.fontSize = Res.font_size_t6
lbl_title :setTTFConfig(ttfConfig)