mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
LanguageLabel组件自动使用language/json/目录下的多语言TTF字体
This commit is contained in:
@@ -111,14 +111,14 @@ export class LanguageLabel extends Component {
|
||||
var font: TTFFont | null = LanguageData.font
|
||||
|
||||
if (label) {
|
||||
if (font && !label.useSystemFont) {
|
||||
if (font) {
|
||||
label.font = font;
|
||||
}
|
||||
label.string = this.string;
|
||||
this.initFontSize = label.fontSize;
|
||||
}
|
||||
else if (richtext) {
|
||||
if (font && !richtext.useSystemFont) {
|
||||
if (font) {
|
||||
richtext.font = font;
|
||||
}
|
||||
this.initFontSize = richtext.fontSize;
|
||||
|
||||
Reference in New Issue
Block a user