Core.FontStore.registerFonts('/fontsConfig.json')注册
console.log('Registered Fonts:', Core.FontStore.getFonts())能获取数据
{
"path": "",
"descriptors": [
{
"name": "Microsoft YaHei",
"weight": "100",
"locals": [
"MicrosoftYaHei"
],
"style": "normal",
"source": "Fonts/msyh.ttf"
}
]
}
|
|