Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8598873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T01:15:40+00:00 2026-06-12T01:15:40+00:00

I made a CCLabelTTF object in one of my custom layers. myLabel = CCLabelTTF::create(

  • 0

I made a CCLabelTTF object in one of my custom layers.

myLabel = CCLabelTTF::create( "Something", CCSizeMake( 300, 96 ), kCCTextAlignmentCenter, "Arial Rounded MT Bold", 48.0f );

Works perfectly fine in the simulator and an iPhone device. But on the iPad, it doesn’t work. I’ve added the font in the resources folder and in the Info.plist file but it still doesn’t work.

So I tried to run the HelloWorld layer ( same project ). It has a CCLabelTTF with a Thonburi font. Worked fine on the iPad. But when I used Thonburi in my own layer, it didn’t work! Why would it not be able to show a text with a Thonburi font in my own layer when it can in the HelloWorld layer?

The difference between the two CCLabelTTF objects are:

  1. The HelloWorld version is a local variable while in my layer it is a member variable.
  2. The HelloWorld version used CCLabelTTF::create( text, font, size ) while in my layer I used CCLabelTTF::create( text, dimension, alignment, font, size )
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T01:15:41+00:00Added an answer on June 12, 2026 at 1:15 am

    in 2.0, they change the API of the create function to create(const char *string, const char *fontName, float fontSize, const CCSize& dimensions, CCTextAlignment hAlignment)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Made a custom obj called Item with some string fields and one float. .h
Made this custom alert box: <script type="text/javascript"> $(function () { var $alert = $('#alert');
Made a custom ListCellRenderer: import java.awt.Component; import javax.swing.JCheckBox; import javax.swing.JLabel; import javax.swing.JList; import javax.swing.JPanel;
I made a custom DatePicker that extends the android DatePicker UI component. I needed
I made a custom viewgroup, and I need to use view animation to rotate
I made a custom cell in a UITableView using IB and Storyboards. The code
Made a custom post type, Events, great. Now I want to get a second
made an object, MyTextBoxCreator. i need to make lots of text boxes dynamically. i
I made a discovery some time back. Just follow these steps: Create a .doc/.xls/.ppt
I made a game in AS3 and i have 2 as file. One is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.