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

  • Home
  • SEARCH
  • 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 7058325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T04:05:57+00:00 2026-05-28T04:05:57+00:00

I am developing cocos2d game, which supports multiple languages. I created a font file(.png

  • 0

I am developing cocos2d game, which supports multiple languages. I created a font file(.png and .fnt) with all supported characters.

The issue is some of the character id’s are in range of 917505-917631. So I set kCCBMFontMaxChars = 917632. But this is taking lot of memory.

Can anyone please tell me how to handle this situation.

  • 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-05-28T04:05:58+00:00Added an answer on May 28, 2026 at 4:05 am
    kCCBMFontMaxChars = 0xffff;  // 65k
    

    This should suffice for all Unicode characters. It certainly works for all the asian and cyrillic languages. The memory usage will be exactly 2 MB.

    Don’t worry about the ID, I believe they are offsets into the BMFont char array and not indexes. Each entry is 32 Bytes. 917632 divided by 32 gives you 28676, which if it is an index fits within the unicode character range.

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

Sidebar

Related Questions

HI all, i am developing a puzzle game in iPhone using cocos2d.I need a
I am developing a game with cocos2d-iphone and I am going to add in
I am developing a 2d game for iPhone by using cocos2d. I use many
I am developing a 2D iPhone game by using cocos2d. I need a countdown
I am developing an iPad game that uses cocos2d and requires a virtual joystick.
Background: I'm developing a game for the iPhone/iPad using cocos2d-iphone. Our engine provides the
I'm developing a game for iPhone using COCOS2D . In that, I need to
I'm currently developing a game on iPhone using the Cocos2D API. It's going well.
I am new to cocos2d and im developing my first iphone game. The requirement
I am developing an iPhone game with cocos2d-iphone. I am particularly interested in how

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.