First I tried to include the font from the pre-populated Google fonts list. Setting the axis parameters in the font-variation-settings field (for example “wdth” 75) doesn’t work.
I then proceeded to include the font manually by including the css in the header
Now setting up the axis parameters in the font-variation-settings field (for example “wdth” 75) works.
But, there is a but!
I think what I described is really tricky and I don’t understand why variable fonts aren’t supported better within the builder. Am I doing something wrong?
Second thing, really frustrating
Css rules setted up in global css (or either in style.css of child theme) have no effect in the builder, so I see default font family inside it. Not good! Any solution for it?
Overall, the font and its font-variation settings work fine on my end. The only issue I see is that changing the font variation settings requires a builder reload if there is more than one setting (e.g. "wght" 222, "wdth" 100), which needs some improvement. I just created an internal task to tackle this issue.
I can’t see any issue. The child theme style.css styles, in my case, the red background color, show as expected within the builder. The same applies to styles within Bricks » Settings » Custom Code » Custom CSS.
According to this page, Integration: Adobe Fonts – Bricks Academy - it should be really easy to change the width of a variable font. It is mainly about Adobe fonts, but ‘This new font-variation-settings is also available for custom fonts’ - last sentence of the doc.
But it didn’t work.
Select variable font - see the image in the doc: it says Source Code Variable. In this case: Outfit
Add: ‘wdth’ 90
But nothing changes.
When I add ‘wght’ 700 - the text does change.
What goes wrong?
(The first text block has a width indicated, the second not. Both are the same.)
It is, if the font supports the width axis. When I look at the available axes of your font (Outfit), I only see weight - not width - and accordingly, it does not work
It worked! I have checked the Google Font library for a variable font that supports the width axis, and it is then super easy to adjust the font natively in Bricks.