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 8476481
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:11:28+00:00 2026-06-10T18:11:28+00:00

I was surprised when I saw that CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)self.attributedString); caused my application to be

  • 0

I was surprised when I saw that

CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)self.attributedString);

caused my application to be unresponsive when the attributed string contains emojis.

I filed a bugreport. What can I do in the meanwhile as a quickfix ?

  • 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-10T18:11:30+00:00Added an answer on June 10, 2026 at 6:11 pm

    Sometimes you need to “sweeten” the cache. Assuming you are using a CGFontRef, get it to render the same Emoji characters. Often Apple waits til the last minute before doing something costly. If you know you are going to need it, if you force the work early on, perhaps in a thread, then later when you need those characters they will have been rendered somewhere and cached.

    In my app, in applicationDidLaunch, I spawn off a block that does something like this.

    EDIT: In your applicationDidLaunch, get a CTFontRef to the font you will use later to render Emoji characters. Create an attributed string of a whole bunch of Emoji characters and set the font to your CTFontRef. Use:

    CTFramesetterCreateWithAttributedString((__bridge CFAttributedStringRef)theAttributedString);
    

    to have it (hopefully) sweeten the font cache. When you first do this, it may cause some delay as you’ve seen before. That’s OK – we just want to remove the delay from the place where you see the delay. If in fact this works, then you can take the above code and put it in a dispatch block and send it to the default queue from applicationDidLaunch.

    If the issue is your initial view is slow to draw because it shows Emoji characters, well, you’re out of luck. If the delay is later on techniques like this can work. I had a similar problem.

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

Sidebar

Related Questions

Today, I got completely surprised when I saw that a global variable has undefined
I was pretty surprised when i saw http://www.vorbis.com/music/Hydrate-Kenny_Beltrey.ogg link not give me a download
I was kinda surprised when I saw following: CREATE TEMPORARY TABLE X (ID int)
Surprised that i havent been able to find this myself, but anyway. Let's say
I was surprised, if I noticed it right, that $this->Js->object() autosorts the array i
I'm surprised that MS has implemented a new feature: Validation with INotifyDataErrorInfo I have
I was surprised to find that Go has a 'goto' statement. I've always been
I was somewhat surprised when I realised that F#'s map implements both IDictionary<'Key, 'Value>
Folks I am surprised to see my code working, that I dont have any
I'm surprised string plus boolean has similar effect of ternary operation: int apple =

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.