core-text Questions
1
Solved
In iOS 7, several of the CGContext text drawing functions were deprecated in favor of Core Text:
Deprecated CGContext Functions
Sometimes Apple suggests specific alternatives to deprecated functi...
Grisette asked 13/10, 2013 at 20:8
2
Solved
I have a stopwatch feature in my app that uses a centered attributed UILabel with a proportionally spaced font to render time. At every time increment the width of the label changes, creating a bou...
Mucker asked 5/2, 2014 at 6:10
1
What is the most performant way to render fast changing text (10-15 numbers that change every single frame) in iOS? Those are the tries that I did so far:
1) CATextLayer + CTFont and NSString: Qui...
Topping asked 27/10, 2014 at 10:19
3
I've been working on a BIG project (there's no point of showing any actual code anyway) and I've notice that the following message appears in the logs:
CoreText CopyFontsForRequest received mig IP...
Merca asked 27/9, 2014 at 8:18
1
Solved
I have a NSAttributedString which is a "table" using NSTextTab stops where the first column is the KEY and the second column is the value
Like this:
| **KEY 1**|value1|
|**KEY TWO**|value2|
The...
Adrianaadriane asked 22/5, 2015 at 20:26
3
I am working on a Reader Project, currently I am parsing the XML file and converted as an attributed string and I render it in CoreText (Used apple Sample Code).
The XML file size is above 6 MB. T...
Fultz asked 13/4, 2015 at 6:23
2
Solved
The CTFontRef provides excellent method such as CTFontGetGlyphsForCharacters for mapping character(s) to glyph(s). My question is, is there any method for invert mapping? That is say, can I get cha...
Marieann asked 12/2, 2011 at 10:8
3
I want to add an outline or stroke to an editable UITextView text as the user types. Exactly like memes : http://t.qkme.me/3oi5rs.jpg
I have to use a UITextView since I need multi line support. ...
Herwig asked 10/1, 2013 at 2:57
1
Solved
I have a basic understanding of fonts and encoding, but recently I had to do something outside of my comfort zone: Turn the character ✖ (0x2716 "heavy multiplication x") into a CGPathRef.
I...
1
Solved
I am trying to find the source of a memory leak as detailed here :
Unable to Release Quartz 2D and Core Text created Images
When I use instruments I can see that there is something called CG Rast...
Colloquial asked 11/12, 2013 at 10:38
1
Solved
I want to "highlight" specific words in UITextView, not with a solid color (which would be possible via NSAttributedString), but rather with a gradient and maybe some other fancy effects.
Hence, ...
Longley asked 4/2, 2015 at 20:25
0
I'm using those line of codes to create an attributed string from a simple HTML string:
NSDictionary *importParams = @{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,NSCharacterEncoding...
Carmelacarmelia asked 4/2, 2015 at 8:38
1
Solved
Question
I'm attempting to make a custom UIView component in swift playground. I've been able to figure out how to do everything except for render text correctly. I'm not sure if i'm supposed to do...
Slum asked 21/11, 2014 at 1:22
0
I am looking for a way to equire character's glyph descent as indicated on the picture:
The method needs to work for any given character (or at least all common unicode characters).
Here is my...
1
I am trying to port elements of the CoreAnimationText sample to Swift. I cannot figure out though, how to extract or downcast the elements of CTRun from an array, in order to pass them to functions...
Schoolgirl asked 1/7, 2014 at 21:3
1
Solved
I'm guessing that it's to make a string out of individual CATextLayers and then position them as required along the curve, then animate. Because that's what's I've got working now, but it loses Ker...
Breakaway asked 28/8, 2014 at 19:8
2
Solved
I'd like to slightly modify the y position of a character in an NSAttributedString. I know I can subscript (or superscript) using the attribute dictionary:
@{(id)kCTSuperscriptAttributeName: @(-1)...
Treytri asked 11/1, 2013 at 15:34
3
Solved
I want to draw text just like the following style -- the image is always on the top right corner, and the text is around the image.
Could anyone tell me how to implement this on iOS? Do I need t...
Inning asked 12/3, 2011 at 18:28
1
I'm loading ttf fonts at runtime and registering them using CoreText. Later, when the font is updated, I unregister the font from CoreText, download the latest version from a server and register th...
Anther asked 30/8, 2013 at 13:59
1
Solved
I just saw this recent question on SO, which gets somewhat close to what I'm asking here.
So I'm trying to typeset a mathematical equation using Core Text and NSAttributedString. It was working pr...
Cervicitis asked 13/4, 2014 at 21:55
4
Solved
I'm using the great TTTAttributedLabel (https://github.com/mattt/TTTAttributedLabel) which works fine under iOS 5. Under iOS 6 however, I get the error:
-[__NSCFType set]: unrecognized selector s...
4
Solved
I'm trying to determine, which particular character in UITextView has been tapped. I tried to use characterRangeAtPoint: method. But it always returns nil, wherever in the UITextView I tap.
I even ...
Expeditionary asked 20/9, 2013 at 20:58
1
Solved
After going through several blogs & forums I didn't find an appropriate solution for drawing inclined/angled text using core Text on a views context.
So here is how it goes.
I have a view w...
Sattler asked 27/1, 2014 at 20:48
1
I'm trying to generate a PDF page with text that has custom symbols (e.g. "€") using a custom font. I've created a PDF context and page using UIGraphicsBeginPDFContextToData and UIGraphicsBeginPDFP...
Epiboly asked 7/3, 2012 at 10:52
5
Solved
I am trying to add a hyperlink to certain parts of my text which is being handled and drawn using CoreText.
According to Apple's docs on CoreText I should be using addAttribute:NSLinkAttributeName...
Plaint asked 24/4, 2011 at 19:45
© 2022 - 2024 — McMap. All rights reserved.