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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T00:40:43+00:00 2026-06-09T00:40:43+00:00

I have an app with a lot of text rendering going on. Sometimes I

  • 0

I have an app with a lot of text rendering going on. Sometimes I need to render about 10 Pages of text in CoreText before being able to display the corresponding view, which does take a considerable amount of time.

To build the pages, I use CTFramesetterCreateFrame to render a CTFrame to a view. Then I use CTFrameGetVisibleStringRange to determine which range was rendered, so I know the offset for the next Frame or Page.

Basically my question is, if I have an NSAttributedString and a CGPath, both of which I use to draw the text with CoreText, is there any way I can get the visible string range without having to render the complete CTFrame beforehand? I would need this function to be able to find out how many pages a text will have before I actually render it.

  • 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-09T00:40:44+00:00Added an answer on June 9, 2026 at 12:40 am

    Have you tried CTFramesetterSuggestFrameSizeWithConstraints? (https://developer.apple.com/library/mac/#documentation/Carbon/Reference/CTFramesetterRef/Reference/reference.html)

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

Sidebar

Related Questions

I have a purely native Android NDK app, and need to render some text
I have researched a lot about creating my own app for android with a
I have TextArea in my Java app and I append lot off text rows.
I have seemingly a lot of text that i need to get into my
I have a lot of forms in my app, and they all need to
I have a lot of text data with different structure. I need to extract
I have a facebook app using a lot of Javascript that doesn't work correctly
I have a winform app that fills a lot of its dropdomn fields fram
I have an MVC app that does a lot of work with jQuery ajax
In my app I have certain events that trigger a lot of emails (~100).

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.