core-text Questions
1
Solved
I have the following code in iOS:
CFAttributedStringRef attributedString = ...
CTLineRef line = CTLineCreateWithAttributedString(attributedString);
CTLineRef truncatedLine = CTLineCreateTruncatedL...
1
Solved
I'm having a UIView that renders some text using CoreText,everything works fine,
except for the fact that the entire view has black background color.
I've tried the most basic solutions like
[sel...
Earlie asked 15/2, 2011 at 15:9
1
Solved
I am dealing with loading a TTF from Resource only. This question helped me answer part 1. But now I need a NSFont from a CGFont or CTFont.
This is for a Mac only application.
2
Solved
How would I get a CGRect from an NSRange for text rendered with Core Text?
I am using Core Text with an NSAttributedString.
Ever asked 18/12, 2010 at 10:56
3
2
Solved
I'm trying to set up a CTFrame that exactly matches my UITextView's text format in iPad.
First of all, I converted UITextView's text to an attributed string. Then I set up a width and a height of d...
Epaminondas asked 15/10, 2010 at 1:29
2
Solved
Before I ask my questions, this is from Apple's documentation re: how to determine the width of a string using Quartz:
If text measurements are important to your application, it is possible
to ...
Apperceive asked 27/5, 2009 at 0:46
1
Solved
I have a long NSString I want to display over a couple of pages.
But to do this, I need to find out how much text will actually fit on the page.
[NSString sizeWithFont: ...] Is not enough, it wil...
4
I'm implementing a document viewer with highlighting/annotation capabilities for a custom document format on iPad. The documents are kind of long (100 to 200 pages, if printed on paper) and I've ha...
Nerland asked 13/6, 2010 at 18:35
1
Solved
I am a developing an iPad application in which i have to use CTRunDelegate. I have defined all the the callbacks that are required viz CTRunDelegateGetAscentCallback , CTRunDelegateGetDescentCallba...
2
Solved
I'm trying to find the boundaries of a line of text in Core Text. For simplicity, assume it has a single character.
At the moment I'm using the following method:
line = CTLineCreateWithAttributedS...
Billups asked 5/5, 2010 at 2:25
© 2022 - 2024 — McMap. All rights reserved.