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
Post a Comment