Skip to main content

HTML to PDF – Font (e.g., Nunito) or Style Not Displaying Correctly

Updated over a month ago

Description:
When converting HTML or a URL to PDF, fonts like Nunito or other styles may not appear as expected in the output.

Root Cause:
This usually happens if the @import URL for the font is incorrect or broken, causing the PDF converter to skip loading the font.

Solution:

  1. Check the @import statement in Chrome DevTools → Console for any 400 errors.

  2. Replace the URL with a correct, working one. Example for Nunito:

@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,200;0,800;1,400;1,700&display=swap');

Tip: Always verify your font URLs in the browser console before converting to PDF.

Did this answer your question?