VFont is a brilliant library which simplifies working with variable fonts in iOS projects.
If you’ve never heard about variable fonts, I’d recommend reading this article Variable fonts in real life: how to use and love them by @romashamin
What does the VFont make easier?
First of all, I wondered if variable fonts are supported in iOS. Nowadays, developers use the top-level
UIFont class to work individually with Light, Regular, Medium, Bold, and other font styles. I discovered that VF support had already been added in
iOS 3.2. However, it was implemented using low level code in the
CTFont class in the
CoreText library. This leads to extra work in order to get to variable fonts using
First, you need to add the custom variable font to your project. If you’ve never done this, I recommend reading this tutorial.
Be aware that the font file name can be different from the actual font name! To get the correct full font name, upload the font file to fontgauntlet.com.
// First, you have to get information about the variable font (axes names, IDs, and allowed values). But the current axis value isn't there
Mobile App Development Trends – 20.02
From Fragile to Agile, Same App 15 Times, How to be a -10x Engineer and more!
Google is testing the use of AI in Play Store
Most of the information posted in the App Highlights section is about the app's features.
Figma Preview – Add Figma design to your Xcode Preview
Figma Preview is a Swift library designed to streamline the integration of Figma designs into your Xcode Preview. It allows...
Mobile App Development Trends – 19.02
Rock Paper Scissor, Android 15 Developer Preview, Event-Driven Architecture and more!
Apple is preparing AI tools for Xcode
Apple's goal is to release new AI features in Xcode as early as the end of this year.
Google has released the first developer preview of Android 15
The Developer Preview has everything you need to try the Android 15 features, test your apps, and give us feedback.