

That's how you get access to custom system fonts in your apps as well as if you are parsing a document, that's how you would instantiate a font that the document needs. Now, there are many good reasons to instantiate fonts by name. You know that you're instantiating a system font by name because if you look at the name that you're passing with if it starts with a dot, you're using a, an Apple private name. You need to use one of the high-level system calls to instantiate such fonts.

So, it's starting with the new releases, any such font instantiation will fail. This is something that in the past we've strongly discouraged apps to do. We've noticed that many apps still today instantiate system fonts by name. We did not instantiate the system font by using its name which leads me to the next topic. Notice we instantiated the system font using a high-level API. And if that's successful, we're able to instantiate our rounded bold system font. So, we make the withDesign call with the rounded constant. And then, what we want to do is actually obtain a rounded system font. In this case, we're getting a font descriptor from a bold system font that we've instantiated. You can use these constants with a new method called withDesign whose purpose is to transform a font descriptor from one design to another. And then, we've defined a constant for each of the new system fonts that we're making available. The first one, the default is the standard system sans serif system font that you've all used throughout the years. You can get access to the system fonts by new APIs in UIFontDescriptor. I encourage you to consult the Human Interface Guidelines to see what are the best uses of these system fonts in your application UIs. There is also a serif system font that we're making available which you see here being used in multiple places in the Books application.įinally, we're making available the monospaced system font which you may have seen before used in Swift Playgrounds. The first one is a rounded system font which you can see here being used by the schedule label at the very top of the Reminders app. We'll be making available three new system fonts in all the new releases. Then, we'll talk about some new mechanisms that we have for apps to select fonts.Īnd we'll end up by talking about some text scaling considerations that you may have as you bring your iPad apps to the Mac.
#Best freeware font picker how to
I will then continue by showing you what it takes to build an app that can make fonts available systemwide as well as how to make an app access those very same fonts. I'll start by showing you some access to some new system fonts for your apps. I manage the Type Engineering Team and it's great to be here with you today to share with you all the new advances that we have for text and fonts in iOS.
