Parameters
The URL to the custom font file.
The font family name.
The font size in points.
Optional text style to scale the font size relative to (e.g., “body”, “headline”).
Support
Usage
Basic custom font
Custom font relative to text style
Notes
- The font file must be accessible from the provided URL
- Supported font formats .ttf & .otf.
- When using
relativeToTextStyle, the font size will scale based on the user’s dynamic type settings
