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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:16:49+00:00 2026-06-09T13:16:49+00:00

I have some lines that have been formatted with a CTFramesetterCreateFrame and the words

  • 0

I have some lines that have been formatted with a CTFramesetterCreateFrame and the words are being printed the right way up, but the line order is reversed, i.e. the first line is at the bottom, the second line is second from the bottom and so on. I can change the transform and make the words back to front upside down etc, but I can’t get the line order correct

I’ve checked the transform matrix everywhere and its always the same –

CGAffineTransform a = CGContextGetTextMatrix (context);

gives me

a   CGAffineTransform   {...}
a   CGFloat 1
b   CGFloat 0
c   CGFloat 0
d   CGFloat -1
tx  CGFloat 0
ty  CGFloat 300

This is probably a noob mistake but I can’t find the problem, I’m fairly new to coretext so any advice would be appreciated.

OSX 10.7.4 running in IOS simulator IOS5.1 XCode 4.4 in a UIView

  • 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-09T13:16:51+00:00Added an answer on June 9, 2026 at 1:16 pm

    This seems to solve it – have a look here draw text right side up on ios
    – always find the answer after posting the question

    in brief you have to flip the co-ordinates back to how they are on osx with 0,0 in the bottom left, then it draws the right way up, you’d think it could be a bit better…

    CGContextSetTextMatrix (context, CGAffineTransformIdentity);
    CGContextTranslateCTM(context, 0.0f, height_of_frame);
    CGContextScaleCTM(context, 1.0f, -1.0f);
    
    CTFrameDraw(FFrame, context);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some text lines like that : vt_wildshade2^508^508 vt_ailleurs2^1188^1188 ... vt_high2^13652^13652 Is it
I have a huge file that has some lines that need to have a
I have some functions that use opengl to draw lines on the screen (health
I have some code in a python string that contains extraneous empty lines. I
I have external html5 canvas that you can paint on some lines using your
I have a form that has a series of check boxes and some line
I have been creating object for a project and there are some instances that
I have a program (a fractal) that draws lines in an interlaced order. Originally,
I have a file that looks like this (but is much bigger): >some text
I have an update panel on my page with some links that have onClick

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.