Variable Fonts: One File, Many Styles
Variable fonts pack many weights and widths into a single file. Learn how axes work, what the benefits are and where the limits and licenses matter.
Traditionally, a typeface with several weights and styles arrives as several separate files: one for Regular, one for Bold, one for Italic, and so on. Variable fonts take a different approach. They store a range of designs inside a single file, and you choose exactly where along that range you want to be. The idea is simple, and it opens up some handy possibilities for designers and developers.
The basic idea
Imagine a slider that runs from thin to heavy. A traditional family gives you a few fixed stops on that slider, such as Light, Regular, and Bold. A variable font gives you the whole slider. You can pick weight 400, 450, or 637, if the font supports it, and the letter shapes adjust smoothly.
Technically, the font includes the outlines for the extreme designs plus instructions on how to interpolate between them. Software uses that information to generate the in-between versions.
What are axes?
Each slider in a variable font is called an axis. Some axes are standardized and common:
- Weight. From light to bold.
- Width. From condensed to extended.
- Slant. The angle of the letters, often for oblique styles.
- Italic. A switch between upright and italic forms in some fonts.
- Optical size. Adjusts details so text looks good at both small and large sizes.
Font designers can also create custom axes, such as the amount of contrast, the roundness of corners, or a playful quirk. What is available depends on the specific font, so always check what the one you are using offers.
Benefits for designers
Fine control. You can tune a heading's weight to match the visual density of a body font, or adjust width to fit text into a tight space without changing size.
Consistent families. Because all the styles live in one design, the weights and widths relate to one another in a coherent way.
Responsive typography. On the web, variable fonts can adapt to the screen. Text might become slightly narrower on small screens or lighter on dark backgrounds, for example.
Creative effects. Designers can animate axes for expressive headlines, within reason. Subtle changes often work better than dramatic ones.
Benefits for performance
On websites, using several static font files means several downloads. A variable font can consolidate these into one file. Whether the total size is smaller depends on how many styles you would otherwise use and how complex the variable font is. If you only need two or three weights, a static set may sometimes be lighter. Test for your own case.
Limitations to know
- Software support. Modern browsers support variable fonts widely, and many design tools do as well, but support for specific axes and features can vary. Check your tools.
- File size. A variable font with many axes can be large. Subsetting, which removes characters you do not need, helps.
- Complexity. More control means more choices. Without a plan, you can end up with inconsistent type. Define the weights and widths you will use and stick to them.
- Licensing. Licenses may treat variable fonts differently from static ones. Terms for desktop, web, and app embedding can vary, so read them carefully.
Using variable fonts well
- Decide on a small set of values for each axis, such as a handful of weights.
- Document them in your design system or style guide.
- Test rendering on the platforms you support.
- Combine with sensible pairings. Our practical method for pairing fonts still applies.
If terms like family, weight, and style feel fuzzy, revisit our explainer on typeface versus font.
Frequently asked questions
Do variable fonts replace static fonts? Not entirely. They are another option. Static fonts remain widely compatible and simple.
Can I use any weight I want? Within the range the font supports. The designer sets minimum and maximum values for each axis.
Are variable fonts harder to use? They are not hard, but they add choices. Setting clear rules for your project keeps things consistent.