font-feature-settings
Embed This Widget
Add the script tag and a data attribute to embed this widget.
Embed via iframe for maximum compatibility.
<iframe src="https://fontfyi.com/iframe/glossary/font-feature-settings/" width="420" height="400" frameborder="0" style="border:0;border-radius:10px;max-width:100%" loading="lazy"></iframe>
Paste this URL in WordPress, Medium, or any oEmbed-compatible platform.
https://fontfyi.com/glossary/font-feature-settings/
Add a dynamic SVG badge to your README or docs.
[](https://fontfyi.com/glossary/font-feature-settings/)
Use the native HTML custom element.
CSS property to control OpenType features — ligatures, small caps, tabular numbers, stylistic alternates. Use font-variant for simpler cases.
The font-feature-settings CSS property gives you direct access to OpenType font features — the advanced typographic capabilities built into professional fonts. Features like ligatures, small caps, tabular numbers, contextual alternates, and swashes are controlled through four-letter OpenType feature tags.
/* Enable tabular (monospaced) numbers for data tables */
.price-column {
font-feature-settings: "tnum" 1;
}
/* Enable small capitals */
.label {
font-feature-settings: "smcp" 1;
}
/* Enable common and discretionary ligatures */
.editorial-text {
font-feature-settings: "liga" 1, "dlig" 1;
}
/* Disable ligatures (useful in code editors) */
code {
font-feature-settings: "liga" 0, "calt" 0;
}
Prefer high-level properties when available:
The CSS specification introduced dedicated properties for the most common features. These are more readable and compose better:
/* Preferred over font-feature-settings for these cases */
.text {
font-variant-numeric: tabular-nums;
font-variant-caps: small-caps;
font-variant-ligatures: common-ligatures discretionary-ligatures;
}
Use font-feature-settings for features that don't have a dedicated property, or when you need precise control that the high-level properties don't offer.
Common OpenType feature tags:
| Tag | Feature | Use case |
|---|---|---|
liga |
Common ligatures | fi, fl combinations |
dlig |
Discretionary ligatures | Decorative combinations |
smcp |
Small caps | Abbreviations, labels |
tnum |
Tabular numbers | Tables, code |
onum |
Oldstyle numbers | Running text |
frac |
Fractions | 1/2 → ½ |
calt |
Contextual alternates | Letter pairs |
ss01–ss20 |
Stylistic sets | Font-specific variants |
cv01–cv99 |
Character variants | Individual glyph alternates |
Checking which features a font supports:
Not every font includes every feature. Inter has excellent support for tnum, calt, and several stylistic sets. EB Garamond has smcp, onum, and swsh. You can inspect a font's features using tools like the Wakamai Fondue web app or FontDrop.
/* Combining multiple features */
.refined-body-text {
font-feature-settings:
"kern" 1, /* Kerning */
"liga" 1, /* Ligatures */
"onum" 1, /* Oldstyle figures */
"calt" 1; /* Contextual alternates */
}
One important caveat: font-feature-settings values don't cascade intuitively. Setting font-feature-settings: "tnum" 1 on a child element overrides all inherited font-feature-settings from parents, not just the tnum value. This is why high-level properties like font-variant-numeric are preferable when available — they cascade independently.
관련 용어
관련 도구
이 개념을 보여주는 폰트
더 알아보기
법률과 금융 웹사이트는 권위, 명료함, 정밀함을 요구합니다. 전문성과 신뢰성을 전달하는 타이포그래피를 선택하는 방법입니다.
폰트 리뷰프로그래밍 리게이처를 갖춘 가장 인기 있는 두 코딩 폰트가 맞붙습니다. JetBrains Mono 대 Fira Code — IDE에 무엇이 더 나을까요?
폰트 리뷰JetBrains Mono는 개발자가 개발자를 위해 설계했습니다. 프로그래밍 리게이처로 가독성을 우선시하는 이 코딩 폰트를 심층적으로 살펴봅니다.
폰트 리뷰Inter는 처음부터 컴퓨터 화면을 위해 설계되었습니다. 현대 UI 디자인의 기본 선택이 된 이 폰트에 관한 완전한 가이드입니다.