I am designing an iOS (SpriteKit) app and have found the Skia (substitute this for any unknown font) font in the list of available fonts in the font-picker if I add an SKLabelNode
to the scene. However, when I run the app in the simulator a substitute font appears.
As far as I know, this font came with Xcode. I certainly didn't buy it, although it could have come as part of another application.
Using a font like Chalkduster seems to work OK and does not require an additional work.
So I am wondering if this font requires any special actions to get it to be recognised (e.g., is it like a custom font) or is there some other issue.
Furthermore, if this isn't a standard Xcode font, could I get to get in to trouble for using it in a commercial app?
EDIT: it would be appreciated if answers could state (a) whether this font is visible in their version of Xcode and (b) whether it works.
EDIT2: OK, so a bit more research. I downloaded and installed a real (free) custom font and this now appears in the font-picker, but it is not actually rendered by my app.
So it appears that Xcode shows all fonts installed on the system, whether they are accessible by your app/target device or not. However, you can only use it by following the procedures described in the answers below. This is probably a good thing as it would stop you using accidentally using a font that you have acquired and for which perhaps you don't have the licence. But is a bit annoying that fonts you can't use are offered in the font-picker.