Anti-aliasing
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/anti-aliasing/" 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/anti-aliasing/
Add a dynamic SVG badge to your README or docs.
[](https://fontfyi.com/glossary/anti-aliasing/)
Use the native HTML custom element.
Smoothing the jagged edges of rendered text by blending edge pixels. CSS: -webkit-font-smoothing: antialiased.
Anti-aliasing is a rendering technique that smooths the jagged, staircase edges that appear when vector letterforms are converted to pixels. Because display pixels are arranged in a grid and letter outlines are smooth curves, the conversion process inevitably creates rough, blocky edges — particularly visible on diagonal strokes and curves. Anti-aliasing softens these edges by calculating partially-covered pixels and rendering them at intermediate opacity or color values.
The fundamental challenge is that letter outlines are continuous curves living in a world of discrete grid squares. A diagonal stroke cutting across pixel boundaries will partially cover some pixels and fully cover others. Without anti-aliasing, each pixel is simply on or off — the result is the "jaggies" or aliased appearance. Anti-aliasing calculates the coverage percentage of each boundary pixel and renders it at proportional opacity.
/* OS-level anti-aliasing control in CSS */
/* macOS: subpixel vs grayscale anti-aliasing */
body {
-webkit-font-smoothing: antialiased; /* Grayscale anti-aliasing */
-moz-osx-font-smoothing: grayscale; /* Firefox on macOS */
}
/* The default on macOS is 'subpixel-antialiased' — using RGB subpixels */
/* Resetting to default: */
.subpixel {
-webkit-font-smoothing: auto;
}
/* Disable anti-aliasing (rarely appropriate) */
.no-smooth {
-webkit-font-smoothing: none;
}
/* The context where this matters most */
.dark-background-text {
background: #1a1a2e;
color: #ffffff;
-webkit-font-smoothing: antialiased;
/* Subpixel AA looks poor on dark backgrounds — grayscale AA is better */
}
.light-background-text {
background: #ffffff;
color: #1a1a2e;
-webkit-font-smoothing: auto;
/* Subpixel AA is fine on light backgrounds */
}
There are two main anti-aliasing approaches used in text rendering. Grayscale anti-aliasing uses only gray values to smooth edges — each boundary pixel is rendered in the appropriate gray between background and foreground color. Subpixel anti-aliasing exploits the fact that LCD pixels contain separate red, green, and blue subpixels arranged horizontally. By addressing subpixels individually, it effectively triples the horizontal resolution available for rendering text edges — producing sharper results on LCD displays. However, subpixel rendering assumes a specific subpixel arrangement and looks poor on dark backgrounds or OLED displays.
The -webkit-font-smoothing: antialiased declaration explicitly requests grayscale anti-aliasing, overriding macOS's default subpixel rendering. This is commonly applied for text on dark backgrounds or for UI elements where the slight weight reduction from grayscale anti-aliasing (text appears thinner) is aesthetically preferred. Typefaces like Inter and Roboto are designed and tested with both anti-aliasing modes in mind — part of what makes them reliable across diverse rendering environments.
관련 용어
이 개념을 보여주는 폰트
더 알아보기
브라우저, 기기, 화면 크기 전반에서 타이포그래피를 테스트하는 방법입니다 — 텍스트 잘림, 오버플로우, 다국어, 시각적 회귀 테스트까지 다룹니다.
접근성다크 모드 타이포그래피는 다른 처리가 필요합니다 — 가독성을 유지하기 위해 더 가벼운 웨이트, 조정된 대비, 신중한 색상 선택이 필요합니다.
CSS 타이포그래피-webkit-font-smoothing: antialiased를 써야 할까요? text-rendering: optimizeLegibility는 실제로 무엇을 할까요? 확실한 답을 제공합니다.
타이포그래피 기초타이포그래피에서 가장 오래된 논쟁을 웹의 관점에서 정리합니다. Serif를 써야 할 때, Sans-serif를 써야 할 때, 그리고 실제 연구가 말하는 바를 다룹니다.