core-text
Using CoreText and touches to create a clickable action
I have some code in a view which draws some attributed text using CoreText. In this, I\'m searching for urls and making them blue. The idea is to not bring in all the overhead of a UIWebView just to g[详细]
2023-01-17 13:27 分类:问答iPhone CoreText: Find the pixel coordinates of a substring
Here\'s a screenshot of the twitter app for reference: http://screencast.com/t/YmFmYmI4M What I want to do is place a floating po开发者_如何学JAVAp-over on top of a substring in an NSAttributedString[详细]
2023-01-17 09:33 分类:问答How can I render different paragraph styles in Core Text?
I\'m having a difficult time trying to work out how to build a page using Core Text, where I have multiple paragraphs which follow one another, but in different styles.[详细]
2023-01-17 07:56 分类:问答How to draw an NSString with an specific height on to an perfectly matching bitmap?
I have an NSString like @\"Hello World\" and want to convert that into an bitmap with exactly 20 pixels height. The width of the bitmap should match the width of the text.[详细]
2023-01-17 01:58 分类:问答How to set leading in CoreText?
You开发者_如何学编程 can get it with CTFontGetLeading(aCTFont), but how do you SET it? Can anyone please explain?[详细]
2023-01-16 02:27 分类:问答Core Text availability
What platforms is Core Text开发者_如何学Go available on from my understanding it is: iPad 3.2 & iPhone 4.0+[详细]
2023-01-16 01:09 分类:问答How does one interact with a string drawn using UIStringDrawing/CoreText
I am attempting to work on an app that highlights certain key words. For this reason, I am looking at using either CoreText or UIStringDrawing to highlight these words (As in bold/underline/italicize/[详细]
2023-01-09 23:11 分类:问答Why is this an over-release of CTFrame
Working with some CoreText code on iOS and I am confused as to why this is an overrelease of the CTFrame.I have confirmed it is an over-release but I am baffled because it is created with a create met[详细]
2023-01-09 03:52 分类:问答How to use CTTypesetterSuggestClusterBreak in Core Text
I am having trouble in using CTTypesetterSuggest开发者_开发技巧ClusterBreak function of CTTypeSetterRef class. I want to use this method to get closest word boundry near an index. I am having difficul[详细]
2023-01-08 16:49 分类:问答Vertical align with Core Text?
How do I change the vertical alignment of the text in a CTFramesetter frame? I want my text to be in the middle instead of being at the top. I am using Core Text framewo开发者_开发技巧rk. There is a[详细]
2023-01-08 11:36 分类:问答