OpenType
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/opentype/" 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/opentype/
Add a dynamic SVG badge to your README or docs.
[](https://fontfyi.com/glossary/opentype/)
Use the native HTML custom element.
A font format developed by Microsoft and Adobe supporting advanced typographic features like ligatures, alternates, and variable axes.
OpenType is a font format specification developed jointly by Microsoft and Adobe in the late 1990s, building on and superseding the earlier TrueType and Type 1 formats. It became the dominant font format for print and digital publishing, and today virtually all professional typefaces are distributed as OpenType files with the .otf or .ttf extension.
OpenType's most significant contribution beyond its predecessor formats is an extensive system of typographic features — discrete capabilities that enable sophisticated typographic refinement. These features are accessed via standardized four-letter tags and can be enabled in CSS using font-feature-settings or the higher-level font-variant-* properties.
/* High-level font-variant properties (preferred approach) */
.refined-typography {
/* Small capitals */
font-variant-caps: small-caps;
/* Oldstyle figures for body text */
font-variant-numeric: oldstyle-nums;
/* Ligatures */
font-variant-ligatures: common-ligatures discretionary-ligatures;
/* Proportional vs tabular nums */
font-variant-numeric: proportional-nums;
}
/* Low-level font-feature-settings for precise control */
.data-table {
font-feature-settings:
"tnum" 1, /* Tabular numbers — equal-width for alignment */
"lnum" 1, /* Lining figures — same height as capitals */
"kern" 1; /* Kerning */
}
.editorial-body {
font-feature-settings:
"onum" 1, /* Old-style figures — varied height, more readable in text */
"liga" 1, /* Standard ligatures (fi, fl, ff) */
"kern" 1;
}
/* Stylistic alternates */
.alternate-style {
font-feature-settings: "ss01" 1, "ss02" 1; /* Stylistic set 1 and 2 */
}
/* Contextual alternates — automatically adjust based on surrounding chars */
.contextual {
font-feature-settings: "calt" 1; /* Usually on by default */
}
Common OpenType features include: liga (standard ligatures like fi, fl), onum (old-style or text figures), lnum (lining figures), tnum (tabular/monospaced figures), sups and subs (superscript and subscript), smcp (small capitals), swsh (swash alternates), frac (diagonal fractions), and the ss01-ss20 stylistic sets which expose typeface-specific alternates.
Not every OpenType feature is available in every font. A font must explicitly include the feature data for CSS to activate it — requesting an unavailable feature simply has no effect. Google Fonts typefaces like EB Garamond include extensive OpenType features including swash alternates and old-style figures, while simpler display fonts may only contain the basics. The best way to discover what a font supports is to check its specimen on the type foundry's website or use a tool like Wakamai Fondue (wakamaifondue.com).
相关术语
展示此概念的字体
了解更多
在任何文字被阅读之前,你的 logo 字体就已传达了品牌个性。最适合 logo、文字标志和品牌形象的 Google Fonts。
字体评测IBM Plex Sans 与 Inter 都以专业 UI 设计为目标,但设计理念各不相同。一份针对企业级应用的详细对比。
字体评测Adobe 的 Source Sans 3 与 Rasmus Andersson 设计的 Inter 都以卓越的 UI 表现为目标。它们有何不同,界面设计该如何取舍。
字体评测Space Grotesk 为几何无衬线体这一类型注入了古怪的个性。当你想要简洁但不落俗套时,这款独特字体正是完美选择。