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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T05:19:37+00:00 2026-05-20T05:19:37+00:00

The docs say that calling CTTypesetterCreateLine is the same as calling CTTypesetterCreateLineWithOffset with offset

  • 0

The docs say that calling CTTypesetterCreateLine is the same as calling CTTypesetterCreateLineWithOffset with offset set to 0.0, but the description of what offset means is rather lacking: “The line position offset.”

I’ve tried providing different values to it and it doesn’t seem to have any impact on the typographic bounds or image bounds of the resulting CTLineRef, nor does it seem to affect the result of drawing the line using CTLineDraw. Can anyone clue me in as to the purpose of this extra parameter?

  • 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-20T05:19:37+00:00Added an answer on May 20, 2026 at 5:19 am

    The offset is a tab offset. It doesn’t apply to the line as a whole, but to the first tab-stop.

    From http://lists.apple.com/archives/Coretext-dev/2011/Feb/msg00021.html

    You create a string containing a tab like “A[tab]B” with Tab position at 200.
    When you create a line with offset Zero and draw it at (x, y), it will appear like this.

    A             B
    (x,y)         (x+200,y)
    

    When you create a line with offset 50 and draw it at (x + 50, y) (← you need to adjust X coordinate yourself), it will appear like this,
    A B
    (x+50,y) (x+200,y)

    Note that “B” remains at the same position even though the line starts at a different position. If you were passing offset 0 and draw it at (x + 50, y), it would have been like the following.

    A                B
    (x+50,y)         (x+250,y)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What are the implications of calling CloseHandle more than once? The docs say you
Django docs say that Context object is a stack: from django.template import Context c
I understand what the L2 cache is, but I can find no docs that
The Python docs say: re.MULTILINE: When specified, the pattern character '^' matches at the
The docs for Dictionary.TryGetValue say: When this method returns, [the value argument] contains the
The iPhone SDK docs claim fopen() is a supported method of file access but
I have read this manual: http://git-scm.com/docs/gitignore As I am working with gitosis, I rather
It is said in the docs , that EventDispatcher's dispatchEvent ...dispatches an event into
I am trying to create a DLL that uses the CURL library. The docs
According to docs of ActiveRecord::Base : ==(comparison_object) Returns true if comparison_object is the same

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.