开发者

How to use CTTypesetterSuggestClusterBreak in Core Text

开发者 https://www.devze.com 2023-01-08 16:49 出处:网络
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

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 difficult in the implementationof this method, i.e how and where this method must be used. I have been banging my head over this but with no success yet. If anyone can help me in using this method I would be very greatful.

Thanx in advance


I'm not sure CoreText is appropriate for this task; it sounds like you should investigate CFStringTokenizer instead.

0

精彩评论

暂无评论...
验证码 换一张
取 消