core-text
How to draw outline text on OpenGL ES context in iOS?
I\'m trying to draw text on OpenGL ES context on iOS platform. I have to draw rich-text with outline font (TTF, OTF or others)[详细]
2023-03-25 10:25 分类:问答Objective C - Core Text, number of characters in a line?
Given an index for current character, how can I determine the number of line that the selected character is开发者_JAVA百科 at?[详细]
2023-03-22 21:01 分类:问答Objective C - Core Text Find index at position?
I am trying to get the index of the closest character to a point. The code below works perfectly fine as ling as my text alignment is set to left, as soon as I chage it to right or center it gives me[详细]
2023-03-22 17:20 分类:问答NSAttributedString add text alignment
How can I add text alignment attribute to an NSAttributedString to center the text? Edit: Am I doing anything wrong? It doesn\'t seem to change the alignment.[详细]
2023-03-22 05:52 分类:问答Superscript, Subscript text with Core Text iPhone
Can anyone explain me, How to draw superscript and subscript alphabets w开发者_如何转开发ith Core Text?[详细]
2023-03-21 23:53 分类:问答NSBackgroundColorAttributeName-like attribute in NSAttributedString on iOS?
I was planning on using NSAttributedString to highlight portions of strings with the matching query of a user\'s search. However, I can\'t开发者_高级运维 find an iOS equivalent of NSBackgroundColorAtt[详细]
2023-03-20 19:06 分类:问答CoreText and strikethrough on iPhone
I\'m currently struggling with the need to display strikethrough text in many UITableViewCells. Something that written in HTML would looke like[详细]
2023-03-18 13:06 分类:问答Cocoa Text - refreshing text on-the-fly
In an app I\'m working on, the user inputs plain text, and the app reformats the text by transforming it to an NSAttributedString, and displays it. This all happens live.[详细]
2023-03-15 19:54 分类:问答Line spacing in multi-language layout with Core Text
The attributed string has only one attribute - 17 point Helvetica NeueUI font - covering the whole string. Line 1~3 are purely English, line 4~6 are mixtures of English and Chinese, line 7~8 are purel[详细]
2023-03-13 03:51 分类:问答Problems of CTLineGetTypographicBounds
The code is extracted from SimpleTextInput sampe code, with a bit modification. Create the frame: self.font = [UIFont systemFontOfSize:18.f];[详细]
2023-03-12 11:41 分类:问答