I need a font for swift sprite kit, iOS. this font is for commercial purposes and im trying to have a kind of arcade font. I would want to create my own font, or to get a public font which i can use for commercial purposes, and how do I install this font, how do I implement it on swift. Thank you.
To change the font or the size of a UILabel in a Storyboard or . XIB file, open it in the interface builder. Select the label and then open up the Attribute Inspector (CMD + Option + 5). Select the button on the font box and then you can change your text size or font.
Fist make sure that your font is .ttf or .otf format
yourLabel.font = UIFont.init(name: YourFont, size: size)
After that you go to your Info.plist and add the Name of the font in "Fonts Provided By Application"
Now you can finally use the font als you would use every other font. If it doesn't work as ir should you can find out the name Xcode gave the font with
for name in UIFont.familyNames() {
println(name)
if let nameString = name as? String
{
println(UIFont.fontNamesForFamilyName(nameString))
}
}
UPDATE
The Font is called Fipps-Regular and 100% free to use Download here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With