core-text
CGContextShowTextAtPoint and white space
Why is it that the following code ignores the white-space? 开发者_开发百科UIColor *textColor = [UIColor colorWithRed:153.0/255.0 green:102.0/255.0 blue:51.0/255.0 alpha:1.0];[详细]
2023-02-19 10:19 分类:问答Why is my text drawing from the bottom up?
In my custom view, I have the following code: -(void) drawRect:(CGRect) rect { // Drawing code CGContextRef context = UIGraphicsGetCurrentContext();[详细]
2023-02-19 08:05 分类:问答Line spacing and paragraph alignment in CoreText
I am using CoreText to render multiple columns of text. However, when I set the first letter of the 1st paragraph to a bold, larger font than the rest of the text, I incur 2 issues (both visible in th[详细]
2023-02-17 10:27 分类:问答clipToBounds questions: UIView Vs CALayer
I have a class that takes an NSString as a parameter, uses Core Text to get the siz开发者_C百科e of the text, extract each line and renders the text line with different x offsets to give a skewed effe[详细]
2023-02-14 17:17 分类:问答iOS, CoreText and Unicode
I was wondering how should I encode a text to be displayed using CoreText. For information, CoreText provides native Unicode support.[详细]
2023-02-13 04:33 分类:问答Do NSMutableAttributedString addAttribute methods retain the passed in value?
For example is the following code memory safe? NSMutableAttributedString *str = ...; CTFontRef aFont = CTFontCreateWithName((CFStringRef)fontName, size, NULL);[详细]
2023-02-12 09:32 分类:问答Core Text to render HTML content
I was wondering if is there a way to render html content using core text, because the common UIWebView is slow as hell to load up.[详细]
2023-02-10 22:39 分类:问答Crazy Font Issue with NSTextView
I\'m knee deep in font metrics with NSTextView at the moment.I was hoping a developer here could shed some light as to what\'s going on.[详细]
2023-02-10 19:26 分类:问答Find center of characters in NSTextView
For each line开发者_C百科 fragment in an NSTextView, I\'m placing a subview next to it for collapsing.The problem is, different fonts throw off the baselines and I can never position the view in the e[详细]
2023-02-10 06:47 分类:问答How do I get an NSFont object from a CGFont or CTFont object?
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.[详细]
2023-02-09 04:46 分类:问答