objective c - iPhone - Convert CTFont to UIFont? -



objective c - iPhone - Convert CTFont to UIFont? -

i trying convert ctfont uifont without losing of styles , attributes such as:

font name font size font color underlines bold italic etc

ctfontref ctfont = ...; nsstring *fontname = [(nsstring *)ctfontcopyname(ctfont, kctfontpostscriptnamekey) autorelease]; cgfloat fontsize = ctfontgetsize(ctfont); uifont *font = [uifont fontwithname:fontname size:fontsize];

color , underline not attributes of font. bold , italic part of font name.

iphone objective-c uifont ctfont

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -