Exploring the possibilities of variable fonts has been my latest project. In my initial test, I played around with the font-variation-settings directive, but unfortunately, it doesn't seem to be functioning properly. This was evident on both Codepen:
https://codepen.io/DailyMatters/pen/LrBvmz
Here is the CSS code I am currently using (it appears that the font is loading correctly from dropbox):
@font-face {
font-family: 'SourceSans';
src: url('https://www.dropbox.com/s/fmonith639cs931/SourceSansVariable-Roman.ttf') format('truetype');
}
html {
font-family: 'SourceSans', sans-serif;
}
p {
font-variation-settings: "wght" 999, "wdth" 125;
}
However, the issue persists even when trying it out on Chrome.
No matter how much I adjust the "wght" axis, there is no visible change. When I ran similar tests with the same font using @font-face, everything worked as expected in Chrome. What could possibly be causing this discrepancy between font-variation-settings and @font-face?