Comments (6)
别改文件名字, 保持微软雅黑.ttf试一下
from cocos2dx-better.
一样的问题,貌似是和文件名字有关系,如果将你测试中的ttf文件名改了,也会出现crash。
我将名字修改为微软雅黑.ttf一样的问题。
from cocos2dx-better.
改成这个吧
MicrosoftYaHei.ttf
这是字体的PostScript名称。
查看字体的PostScript名称的方法,Mac
- 安装,
- 打开字体册,选中字体
- 点那个叹号
就能看到了
在 2014年5月7日,13:54,Neal [email protected] 写道:
一样的问题,貌似是和文件名字有关系,如果将你测试中的ttf文件名改了,也会出现crash。
—
Reply to this email directly or view it on GitHub.
from cocos2dx-better.
thanks I8g.
@nealzxc: cocos2d-x ios上用ttf你得用正确的字体名, 所以demo的字体你改了也不行, 必须叫那个. 要你不要改文件名就是这个意思, 只不过我说错了, 名字不是叫"微软雅黑", 而是"MicrosoftYaHei", Microsoft和YaHei之前貌似有个空格, 我看到的是有个空格, 你都试试吧.
from cocos2dx-better.
我试了一下,用post名称 用post中的唯一名称,都会出错。你们可以下一个微软雅黑的字体包试试,几个名称我豆试过了,结果一样。
from cocos2dx-better.
第三方字体需要在plist里面添加描述
<key>UIAppFonts</key>
<array>
<string>font/Microsoft YaHei.ttf</string>
</array>
你可能会问demo的字体为啥不需要,应该是要的,但是不要确实也没事所以我也没加了, 为什么他比较特殊我不懂了,也许系统里已经有过了或者什么的。
from cocos2dx-better.
Related Issues (20)
- CCImage_richlabel_ios.mm line 610 CCImage & CCImage undeclared HOT 6
- 新bug
- One suggestion HOT 8
- iOS project Target Dependency HOT 1
- RichLabel不能读取Resource文件夹以外的图片
- 在android上label还是会有纹理丢失的问题。 HOT 4
- 这里有点泄漏
- 小问题
- Socket issue HOT 4
- label的问题 HOT 1
- CCRichLabel ,显示不出来 HOT 1
- label的图标问题 HOT 9
- get embedded image bound HOT 3
- crash after setLinkTarget HOT 2
- Crash HOT 2
- memory leaks on Android ! HOT 6
- Android平台文字颜色问题 HOT 4
- 好久没来了 HOT 5
- 安卓手机下,图文混排图片和文本的位置有重叠,换行后,图片位置乱了
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocos2dx-better.