CSS font-feature-settings property

Description

CSS font-feature-settings property provides low-level control over font features. It provides font-features that are specifically used in rare cases.

The value consists of a string and a boolean. The boolean values (on, off or 1, 0) enables or disables the font-feature.

Syntax

font-feature-settings : string [ integer | on | off ]

Property values

"dlig"Default

dlig represents discretionary ligatures

font-feature-settings: "dlig" 1;

"smcp"

It represents small capitals.

font-feature-settings: "smcp" on;

'c2sc'

It enables capitals to small capitals.

font-feature-settings: 'c2sc';

"liga"

It disables common ligatures.

font-feature-settings: "liga" off;

"tnum", 'hist'

It enables tabular numbers and historical forms.

font-feature-settings: "tnum", 'hist';

"silly"

Tag is too long.

font-feature-settings: "silly" on;

"PKRN"

It enables custom features.

font-feature-settings: "PKRN";

Applicable to

It applies to all elements

#CSS digger
Was this article helpful?

 
We are learning the properties of fonts.
×

Ctrl+D