How do I tell which font Chrome is using?

CssGoogle ChromeFonts

Css Problem Overview


Imagine I have the following CSS

font-family: 'Non-existant Sans', Arial, sans-serif;

Assuming 'Non-existant Sans' is not installed on the system, Arial will be used by the browser. Using Chrome, is there any way of finding out which font is being rendered?

Edit: Dave (in the comments to the question) has pointed out a similar question. I'm specifically asking about Chrome here. Many of the answers in the other question suggest extensions which are okay, however; is there a native way of determining this information using the Dev Tools alone?

Edit Sept 2013: The Chrome team have just announced that font-family inspection is now available in the latest builds of Chrome Canary (Twitter link contains an image with more info). This should trickle down through dev > beta > stable over the next few weeks – great news!

Css Solutions


Solution 1 - Css

In Google Chrome devtools in the 'Elements' tab, under 'Computed':

Magic paper roses hello kitty

Solution 2 - Css

I'm a bit late to the party but I've just discovered a very simple way to debug which font your browser is using.

In the Chrome Web Inspector, go to the font stack in the CSS pane of the Elements Panel. Then, starting with the top of the stack, change the name of the font (I add random letters) while keeping an eye on the text in question. When you change the one in use you will see the text change font as it falls back to the next one in the stack.

I assume something similar is possible in most dev tools

Voilá

Solution 3 - Css

If you don't want to use a plugin there is a bookmarklet that will tell you this (once activated and you hover over said text):

http://chengyinliu.com/whatfont.html

Solution 4 - Css

Your 'Non-existant Sans' can be rendered with @font-face in your css. http://www.w3schools.com/cssref/css3_pr_font-face_rule.asp

I don't know of a way to detect font rendering, so I don't technically answer your question. I did find this: http://webdesignerwall.com/tutorials/css3-font-face-design-guide it's a javascript called Modernizr that ensures if a browser doesn't support @font-face then it will load fallback fonts such as Arial and Helvetica.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLiam NewmarchView Question on Stackoverflow
Solution 1 - CssJürgen PaulView Answer on Stackoverflow
Solution 2 - CssIoloView Answer on Stackoverflow
Solution 3 - CssSeb AshtonView Answer on Stackoverflow
Solution 4 - CssNoah RaineyView Answer on Stackoverflow