Xcode Loading Custom Fonts

Source: Internet
Author: User


1, enter the website http://www.dafont.com, select the desired font

2, download the font, unzip the file, find the TTF format file, this is what we want to import into the project. such as Thirteen_pixel_font.ttf.

3, import files to the project click the last

4, select the project targets, enter info, find Custom IOS Target Properties Click the last line of the list. Bundle versions string, short , click the button + to add new content. As shown in the following:



5, in the development of iOS games, you can refer to the above new fonts. Such as:

sklabelnode*mylabel = [sklabelnodelabelnodewithfontnamed:  @ "Thirteen Pixel Fonts"];


Learn from: IOS Games by Tutorials p145 Loading Custom Fonts

Xcode Loading Custom Fonts

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.