Web4College

CSS font-feature-settings property

src

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;
Try it

"smcp"

It represents small capitals.

font-feature-settings: "smcp" on;
Try it

'c2sc'

It enables capitals to small capitals.

font-feature-settings: 'c2sc';
Try it

"liga"

It disables common ligatures.

font-feature-settings: "liga" off;
Try it

"tnum", 'hist'

It enables tabular numbers and historical forms.

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

"silly"

Tag is too long.

font-feature-settings: "silly" on;
Try it

"PKRN"

It enables custom features.

font-feature-settings: "PKRN";
Try it

Applicable to

It applies to all elements