Post

Replies

Boosts

Views

Activity

Reply to Preinstalled font use
For installed fonts, use the UIFont initializer to refer to a font by name. For example UIFont.init?(name: String, size: CGFloat) Use the UIFont familyNames property to get the list of installed font families then get the actual installed fonts with fontNames(forFamilyName:)
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’22
Reply to SF Symbols & Fonts - Commercial use
My understanding is that San Francisco is only licensed for use to write apps for Apple devices (e.g. iPhone, Apple Watch, Macintosh, etc.) Outside of app development, you can create UI mock-ups. Otherwise I believe SF font is not licensed for other purposes, and I think this also includes symbols. I would suggest consulting the Symbols and SF font license terms.
Topic: Design SubTopic: General Tags:
Apr ’22
Reply to Use SF font to build custom sign in with apple button
There appears to be confusion about using the San Francisco Font. The restriction about only being able to use SF font for mockups is if you download the font yourself. Apple says you should not do this for native app development as Apple doesn't license their fonts for download so you can include a copy in your application. However, Apple actively encourages developers to use SF font in their apps by using system APIs. For your application, use the system font APIs, and you will get San Francisco font. This will work for all your Apple ecosystem devices (iphone, ipad, apple watch, apple tv, Macintosh, etc.) as Apple has standardized San Francisco as system font across their product line. For example, see UIFont.systemFont(ofSize: ) or UIFont.preferredFont(style:) For your website, there are tags for browsers that allow you to specify system font. "You can access system fonts in a standards-compliant way by utilizing the system-ui family. And in Safari 13.1 we introduced new standards-based keywords to access serif, monospace, and rounded forms." https://developer.apple.com/forums/thread/127350?answerId=614912022#614912022 Doug Hill https://github.com/djfitz/SFFontFeatures
Topic: Design SubTopic: General Tags:
May ’21
Reply to Can I use a system front in a commercial game via Unity?
Up front, I know almost nothing about Unity. But whether or not you can use that font with a Unity game depends on how Unity allows you to specify fonts For example, if you can specify the font by name using a Unity API, then you are probably fine. If you're required to embed the font files in your app, then you absolutely cannot do this. My understanding is that Apple has NEVER licensed fonts for embedding in your app. I would recommend you check with Unity for more details about using fonts. Doug Hill
Jan ’21
Reply to can i use sf font as a web font?
See here: https://developer.apple.com/forums/thread/127350?answerId=614912022#614912022 "You can access system fonts in a standards-compliant way by utilizing the system-ui family. And in Safari 13.1 we introduced new standards-based keywords to access serif, monospace, and rounded forms."
Topic: Safari & Web SubTopic: General Tags:
Jan ’21
Reply to alternate six and nine on the Apple Watch
I tried this code and it appears that the WatchKit label WKInterfaceLabel doesn't have a font property. Use the attributedString property instead. See below for a cleaned up version of the code and updated for Swift 5 and iOS 13. Also, I created a library to easily use these Stylistic Alternative features of San Francisco font: https://github.com/djfitz/SFFontFeatures Doug Hill let features = 		[ 				[ UIFontDescriptor.FeatureKey.featureIdentifier: kStylisticAlternativesType, 					UIFontDescriptor.FeatureKey.typeIdentifier: kStylisticAltOneOnSelector ] 		] let fontDescriptor = UIFont.systemFont(ofSize: 14, weight: .regular) .fontDescriptor .addingAttributes( [UIFontDescriptor.AttributeName.featureSettings: features] ) let alternate69Font = UIFont(descriptor: fontDescriptor, size: 14) let theString = NSMutableAttributedString.init( string: "69", 							 attributes:[NSAttributedString.Key.font : alternate69Font] ) watchLabel.setAttributedText(theString)
Topic: App & System Services SubTopic: General Tags:
Jan ’21