Coder Social home page Coder Social logo

Crash about cocos2dx-better HOT 6 CLOSED

stubma avatar stubma commented on June 18, 2024
Crash

from cocos2dx-better.

Comments (6)

stubma avatar stubma commented on June 18, 2024

别改文件名字, 保持微软雅黑.ttf试一下

from cocos2dx-better.

nealzxc avatar nealzxc commented on June 18, 2024

一样的问题,貌似是和文件名字有关系,如果将你测试中的ttf文件名改了,也会出现crash。
我将名字修改为微软雅黑.ttf一样的问题。

from cocos2dx-better.

l8g avatar l8g commented on June 18, 2024

改成这个吧

MicrosoftYaHei.ttf

这是字体的PostScript名称。

查看字体的PostScript名称的方法,Mac

  1. 安装,
  2. 打开字体册,选中字体
  3. 点那个叹号
    就能看到了

在 2014年5月7日,13:54,Neal [email protected] 写道:

一样的问题,貌似是和文件名字有关系,如果将你测试中的ttf文件名改了,也会出现crash。


Reply to this email directly or view it on GitHub.

from cocos2dx-better.

stubma avatar stubma commented on June 18, 2024

thanks I8g.

@nealzxc: cocos2d-x ios上用ttf你得用正确的字体名, 所以demo的字体你改了也不行, 必须叫那个. 要你不要改文件名就是这个意思, 只不过我说错了, 名字不是叫"微软雅黑", 而是"MicrosoftYaHei", Microsoft和YaHei之前貌似有个空格, 我看到的是有个空格, 你都试试吧.

from cocos2dx-better.

nealzxc avatar nealzxc commented on June 18, 2024

我试了一下,用post名称 用post中的唯一名称,都会出错。你们可以下一个微软雅黑的字体包试试,几个名称我豆试过了,结果一样。

from cocos2dx-better.

stubma avatar stubma commented on June 18, 2024

第三方字体需要在plist里面添加描述

    <key>UIAppFonts</key>
    <array>
        <string>font/Microsoft YaHei.ttf</string>
    </array>

你可能会问demo的字体为啥不需要,应该是要的,但是不要确实也没事所以我也没加了, 为什么他比较特殊我不懂了,也许系统里已经有过了或者什么的。

from cocos2dx-better.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.