Check the CSS2 URL for Two Font Families
Admin ·
A single CSS2 URL can describe the exact families and styles a page uses. Check each family value before deploying the link or import so a misplaced axis or missing style does not change the result.
Build one request for Inter and Crimson Pro
Leave Inter as the first family and enter 700, 400 in Normal weights. Choose Add family to load Crimson Pro in the second row. Leave its normal range at 200..900 and its italic weight at 400.
The URL sorts Inter to 400;700. Crimson Pro puts ital before wght and groups the normal range under 0 and italic weight under 1. Keep Font display set to swap for this example.
| Family | Generated CSS2 family value |
|---|---|
| Inter | Inter:wght@400;700 |
| Crimson Pro | Crimson+Pro:ital,wght@0,200..900;1,400 |
Open the Google Fonts CSS GeneratorGoogle Fonts CSS2 API documentation
Check the link and its matching class rules
The HTML link contains the same URL with ampersands encoded for an HTML attribute. Paste it into the head of your own page. The generated class for Inter is site-text, and Crimson Pro uses article-text.
Use CSS import if you are putting the request at the top of a stylesheet. Test the finished page with the generic fallback and check the requested family and styles in the browser’s network panel.
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&family=Crimson+Pro:ital,wght@0,200..900;1,400&display=swap">Google Fonts CSS2 API documentationW3C CSS Fonts font-display descriptor
Add a text subset when the copy is fixed
If the same heading appears on every page, you can enter its public characters in Optional text subset. The generator encodes them in the request. Verify any spaces, accented characters or punctuation you need.
For changing copy, leave the subset blank. Check the published family’s current weight and style range before deployment. The workspace preview is for the font stacks available on the current device.
Common questions
Can normal and italic use different ranges?
Yes. Each row has separate normal and italic weight inputs. When italic is present, the URL assigns 0 to the normal tuples and 1 to the italic tuples.
Why does the tool reject 200..700 alongside 400?
The 400 tuple already falls inside the range. Use the full range on its own or replace it with individual weights.