Menu

1 / 2

Which font is this? Chrome DevTools knows, in a section most people never scroll to

DEV Community: css·Red Digits·10 days ago
#bn3Ty4YD
#devtocss#devto#dev#shadow#font
Reading 0:00
15s threshold

Every front-end developer has done it: right-click, Inspect, read font-family , and announce the answer. Half the time that answer is wrong, because font-family is a wish list. The browser may have drawn something else entirely.

Chrome already knows which font it used. It tells you at the very bottom of the Computed tab, in a section called Rendered Fonts . Here is the whole route, plus the places where it goes wrong.

1. Select the element that holds the words

Right-click the text and choose Inspect , or press Ctrl + Shift + C ( Cmd + Shift + C on a Mac) to open DevTools with the element picker already on.

The picker tooltip shows a font line. Treat it as a preview, not a verdict: it reports the declared family.

Make sure you land on the element that directly contains the text, not a wrapper div around it. font-family is inherited, so a wrapper reports a perfectly plausible stack while the real text node two levels down is styled differently.

2.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.