Fonts may render differently in Webflow preview and live browsers compared to Figma or Sketch due to browser rendering engines, font hinting, and default styles. To achieve consistent font rendering, follow these steps:
1. Use Web-Safe and Custom Fonts Correctly
- Verify that your font is uploaded correctly in Webflow under Project Settings > Fonts.
- If using Google Fonts, ensure Webflow is pulling the correct weights and styles.
- If using custom fonts, upload them in WOFF/WOFF2 format for better browser support.
2. Set Explicit Font Weights and Styles
- In Webflow, manually apply font weights (e.g., 400, 500, 700) instead of relying on default inherited weights.
- Match the font smoothing/anti-aliasing that Figma or Sketch applies.
3. Adjust Font Smoothing with Custom CSS
Add the following code in Project Settings > Custom Code > Inside to improve rendering:
```css
```
-webkit-font-smoothing: antialiased;
improves font clarity on macOS and iOS.-moz-osx-font-smoothing: grayscale;
adjusts rendering on macOS Firefox.text-rendering: optimizeLegibility;
enhances kerning and font clarity.
4. Ensure Correct Line Heights and Letter Spacing
- Check that Webflow’s line height, letter spacing, and text settings match your design tool.
- Figma often uses auto line height, whereas Webflow requires a manual value.
5. Disable Default Browser Styles
- Browsers may apply default styling to fonts. Reset them using:
```css
```
Summary
To ensure consistent font rendering, upload the correct font versions, set explicit weights, apply font smoothing CSS, and match Webflow text settings to your design tool. Adding custom CSS for antialiasing further improves consistency across browsers.