🍋
Menu
Troubleshooting Beginner 1 min read 172 words

Troubleshooting Font Rendering Across Platforms

Fonts look different on Windows, macOS, and Linux due to different rendering engines. Learn why this happens and how to minimize cross-platform differences.

Key Takeaways

  • macOS uses subpixel antialiasing that makes fonts appear bolder and smoother.
  • Fonts that look perfect on macOS appear too thin on Windows, especially light and regular weights.
  • Use `font-display: swap` to show text immediately with a system font, then swap in the custom font when loaded.

Why Fonts Look Different

macOS uses subpixel antialiasing that makes fonts appear bolder and smoother. Windows uses ClearType which is sharper but thinner. Linux varies by distribution and freetype settings.

Common Problems

Thin Fonts on Windows

Fonts that look perfect on macOS appear too thin on Windows, especially light and regular weights. This is because macOS renders fonts at slightly heavier weights.

Solution

Test font weights on both platforms. Consider using font-weight: 450 or -webkit-font-smoothing: antialiased (macOS) to reduce macOS's extra boldness and achieve more consistent cross-platform rendering.

Blurry Fonts on Low-DPI Screens

On 96 DPI screens, fonts at certain sizes can hit sub-pixel boundaries and appear blurry. This is most visible at small sizes (11-13px).

Solution

Stick to pixel-hinted font sizes and use fonts designed for screen rendering (Inter, Roboto, SF Pro) rather than print-origin fonts.

Web Font Loading

Use font-display: swap to show text immediately with a system font, then swap in the custom font when loaded. This prevents invisible text during loading.

Related Tools

Related Formats

Related Guides