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

c# - Move local mssql database to webhosted MYSQL -

java - How to pass parameters between Request-Scoped Controllers? -

string - what is the difference between "some" == "some\0" and strcmp("some","some\0") in c++? -