0

I am trying to use font-feature-settings: 'tnum' on, 'lnum' on; style on a custom font, but I am unable to see any visible effect of this property on the font.

Moreover, in my JSFiddle snippet, I am getting css compile error

"Expected no more than 1 declaration"

  1. Is this css font-feature-property correct?
  2. Is there any specific css property which is needed for this to take effect?
R_Dax
  • 706
  • 3
  • 10
  • 25

1 Answers1

0

Don't add "on"; just list the features.

font-feature-settings: 'tnum', 'lnum'

See the CSS Fonts Module for details and examples.

Peter Constable
  • 2,707
  • 10
  • 23
  • Hi Peter, Thanks for responding quickly :) I tried your suggestion but I am not able to see any difference in JSFiddle. Haven't gone through CSS Fonts Module, will go through it later. – Sourabh Lonikar Jul 28 '21 at 17:45