I am dealing with loading a TTF from Resource only. This question helped me answer part 1. But now I need a NSFont from a CGFont or CTFont.
This is for a Mac only application.
I am dealing with loading a TTF from Resource only. This question helped me answer part 1. But now I need a NSFont from a CGFont or CTFont.
This is for a Mac only application.
Use CTFontCreateWithGraphicsFont
.
Do nothing. You already have one. NSFont and CTFont are toll-free bridged, so a CTFont is an NSFont and vice versa.
© 2022 - 2024 — McMap. All rights reserved.