hi, I am working on a varfont with a large set of numerals. I like to access them in VSC. How does the tags such as .alt01, .tf, tnum etc become accessible in code? Can I add it as a class and so how?
I tested
.tabular-nums{
font-variant-numeric: tabular-nums;
font-feature-settings: “tnum”;
}
I just read your last amended paragraph. What doesn’t work? Don’t forget to set the feature to True by adding 1 after your feature name, like in my code. Otherwise, are you sure your OpenType features work? Try them in an application like fontgauntlet.com.
Hi @SCarewe
Nope. I do not get it to work. If I create Oldstyle Figures, I get the suffix .osf.
If I generate the features I get : onum Oldstyle Figures
and the code states “sub one.tf by one.tosf;”
And CSS states “onum”.
What am I missing? It is quite confusing.
If I export and install an OTF, the features are available in InDesign,
but varfont axes such as “wght” are not available.
If I export and install a varfontTTF, the features are not available in InDesign,
but the varfont axes form “wght” are available.
But what I want is to access “oldstyle numbers” in CSS. And what I think is that Glyphs might not export the correct features that I need.
I am not really looking for accessing the varfont range.
I am looking for accessing the different figures, such as oldstyle figures, tabular figures, etc
Hi, I don’t have the option to upload or share a corporate font, because I am bound by a license agreement. That’s the perks of working with corportations. I thank you so much for your support. I hope to find the solution soon. If I find it I will post it. All good, Carolina Laudon