cocoa - How do I get an NSFont object from a CGFont or CTFont object? -


i dealing loading ttf resource only. this question helped me answer part 1. need nsfont cgfont or ctfont.

this mac application.

how nsfont cgfont

use ctfontcreatewithgraphicsfont.

how nsfont ctfont

do nothing. have one. nsfont , ctfont toll-free bridged, ctfont nsfont , vice versa.


Comments

Popular posts from this blog

php - How to build a web site which gives a sub-domain dynamically to every registered user? -

c# - Add item to Generic List / Collection using reflection -