Questions tagged [variable-fonts]
29 questions
4
votes
0 answers
Variable font weight not reflected in Android Studio Design pane
when I want to use Font with variable font weight (wght tag) - specifically Public Sans - and the font is registered in XML file like this (with fontVariationSettings):

Matej Hlatky
- 461
- 7
- 14
4
votes
0 answers
Variable fonts in JavaFX
So i'm not clear on something. How does JavaFX handle variable fonts?
For example, I have this Roboto Variable Font. I have embedded it into my application via CSS. It seems however, to only use the Regular variant.
Specifying font weight (numerical…

carlo_webber124
- 79
- 7
3
votes
1 answer
how to change Font dots mode in flutter?
I have a variable font and I want to use it in my project, but I can't use one of its options. This option changes the status of dots in Persian language
If anyone has a solution for it, please tell me , thanks
I used DefaultTextStyle and…

Mohammad Mousavi
- 31
- 5
3
votes
2 answers
Why does Safari render Roboto Flex so thin, at 400 font weight?
Safari renders my font-weight: 400 text very thin, versus the same on firefox. This is Firefox:
This is safari:
Surprisingly, this even happens on the Google Fonts site. Check out the difference between these two paragraphs, with the same…

Marcus Buffett
- 1,289
- 1
- 14
- 32
3
votes
1 answer
Variable-Fonts in html5-canvas
I have this problem with variable fonts and was wondering if someone has an idea for a solution. I have built this poster-generator, using variable fonts, where you can manipulate the font-variation-settings on two axes. Here is a live example…

Mark Julien Hahn
- 33
- 6
2
votes
2 answers
Is there a "fast" way to get info about variable Google Fonts?
I am building a UI as part of a product to make it easy to choose, select and style Google fonts. I am challenged by variable fonts because I cannot find a good way to get info about these.
The developer API provides metadata for all Google Fonts…

Stephen Miller
- 503
- 3
- 11
2
votes
1 answer
Variable fonts in iOS 14
The following code allows to create a font with different weights.
func makeFont(weight: CGFloat, size: CGFloat) -> UIFont {
var attributesDict = [String: Any]()
attributesDict["Weight"] = weight
/* Rubik-Light - is a variable font */
…

RPlay
- 301
- 2
- 10
1
vote
0 answers
Variable font weight on HTML canvas capped at 999?
I'm working on an variable type test for a project with a variable font i created.
The 'wght' axis contains a range of between 0-6600.
I had no problems animating the full range of values above as a DOM element with HTML and CSS.
But while trying…

wsgg
- 934
- 1
- 20
- 43
1
vote
1 answer
Roboto Flex variable font: get "full" woff file with all features to embed locally
I'd like to use the variable font Roboto Flex for animating various opentype parameters in realtime via css. This means i'd like to get the "full package" with all axis and stuff in one single font file. I'm talking specifically about the font…

kapitel4
- 75
- 7
1
vote
0 answers
Variable font not loading properly in Safari
I'm using a variable font, and it is working correctly on Chrome (Version 97.0.4692.71) and Firefox (96.0.2) but not on Safari (15.1).
On CSS, I'm importing the font like this:
@font-face {
font-family: 'Bild V3 Variable Web';
font-style:…

fngo
- 21
- 1
1
vote
2 answers
How do I use variable fonts with Google Fonts?
Unlike traditional fonts that require a file for each weight (300, 400, 500, etc.), variable fonts allow you to access every combination of the font's weights and styles through a single (smaller) font file. This has obvious benefits for the web,…

Hashim Aziz
- 4,074
- 5
- 38
- 68
0
votes
1 answer
I have a problem with variable fonts: The function 'FontVariation' isn't defined
flutter code
errors
pubspec.yaml
font file
In flutter, I have a problem when using variable fonts: The function 'FontVariation' isn't defined.
Try importing the library that defines 'FontVariation', correcting the name to the name of an existing…

WWill
- 3
- 2
0
votes
1 answer
SwiftUI: Variable Dynamic Font
I'm in the process of upgrading my app from UIKit to SwiftUI and I've run into the issue of how to create a SwiftUI Text view which reacts to dynamic (accessible) font size and uses a variable font file.
In UIKit, we can create a UILabel view doing…

Tyler D.
- 13
- 2
0
votes
0 answers
Variable fonts in Java
Is there any existing tool or library in the Java ecosystem that can handle variable fonts and allow me to read and modify their variable axes programmatically (with the aim of rendering the font)?
I have come across the TrueTypeFont class from the…

micycle
- 3,328
- 14
- 33
0
votes
0 answers
Is there any way to add selected font-weight and create a variable font file?
Is there any way to add selected font-weight and create a variable font file.
I need only regular, semibold and bold to reduce file size.
i used fontsquirrel for size compression but output was not correct.
Or else any other method to combine 3…

stalin
- 1
- 1