Commit f2e28a3f authored by Tt's avatar Tt

feat(字体): 更新字体文件并调整字体大小逻辑

parent 8ff75fc5
{
"ver": "1.1.0",
"uuid": "3a3c2e1a-7c98-4f79-b310-8a2134835f7b",
"subMetas": {}
}
\ No newline at end of file
...@@ -6160,7 +6160,7 @@ ...@@ -6160,7 +6160,7 @@
"_lineHeight": 130, "_lineHeight": 130,
"_enableWrapText": false, "_enableWrapText": false,
"_N$file": { "_N$file": {
"__uuid__": "cbcefea5-0629-4ac7-8239-2d87ea97cb70" "__uuid__": "3a3c2e1a-7c98-4f79-b310-8a2134835f7b"
}, },
"_isSystemFontUsed": false, "_isSystemFontUsed": false,
"_spacingX": 0, "_spacingX": 0,
......
...@@ -718,6 +718,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -718,6 +718,11 @@ export default class SceneComponent extends MyCocosSceneComponent {
// 设置文字内容 // 设置文字内容
if (currentData.txt) { if (currentData.txt) {
pg.view.setString(word, currentData.txt); pg.view.setString(word, currentData.txt);
if (currentData.txt > 6) {
word.getComponent(cc.Label).fontSize = 250;
} else {
word.getComponent(cc.Label).fontSize = 350;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment