Capítulo 296 de 988

Chapter 296: Text subpixel rendering

Core Idea

Chrome will by default always render text to align it with the closest pixel. That means that a text with margin-top: 10px and margin-top: 10.

Key Concepts

  • Text subpixel rendering: Chrome will by default always render text to align it with the closest pixel.

Code Examples

<div
  style={{
    translate: interpolate(frame, [0, 200], ['0px 0px', '0px 50px']),
  }}
>
  hi there
</div>
  • What it demonstrates: Usage pattern for Text subpixel rendering from the official docs.

Key Takeaways

  1. Understand text subpixel rendering when working with Text subpixel rendering.

Connects To

  • Cors Issues: related page in the Troubleshooting & Errors section.
  • Enametoolong: related page in the Troubleshooting & Errors section.
  • Font Picker: related page in the Troubleshooting & Errors section.