Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to know which font is used by browser from CSS font-family list?

In web development, a preferred list of font is put in font-family of CSS as following sample.

font-family: Roboto, "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;

I want to know which font is chose by browser to display the content. I know I can manual modify the font in font-family one by one in browser developer tool and observe the changes of displayed content to identify the font used by browser. But it's too clumsy and require very sharp eyes T_T.

Anyone can know a better way? Thanks very much!

like image 802
xuemind Avatar asked Mar 16 '19 14:03

xuemind


People also ask

How do I find out what font my browser is using?

Add (download) Google chrome extension or Safari extension on your choice of web browser. Go to webpage where you want to find out the font and click on WhatFont extension. Hover over the webpage. You will find a floating box containing font ,you want to find out.

How do I find out what font is used on a website Chrome?

Chrome Developer tools can show you the exact rendered fonts for a given web page with just a few clicks. Right click on any element in the page and select Inspect. Next head over to the Computed tab, scroll down, and you'll quickly notice the rendered fonts for the page.


3 Answers

In firefox-developer-tools, Inspector > Fonts tab displays "Fonts used" by the currently inspected element. Edit fonts MDN

In google-chrome-devtools, Elements > Computed tab displays "rendered fonts" for the currently inspected element. "Even if its name isn’t in the font-family list." whats-that-font , Hackernoon

Firefox :-

enter image description here enter image description here

Chrome :-

enter image description here

Thanks, @xuemind for suggested edit

like image 159
Pradeepal Sudeshana Avatar answered Oct 23 '22 12:10

Pradeepal Sudeshana


In order if available. In your example it'll go for Roboto first and keep the next ("Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif) as back-up, if it's available.

like image 2
Marcel Avatar answered Oct 23 '22 14:10

Marcel


Hi On mozilla firefox use Font Finder addon . It is the best addon which will provide u all the styles applying on your element.!

Updated

It works as I expect. After Font Finder installed, select the target text and choose [Font Finder>Analyze Selection] in context menu (right click). It will show the Font Being Rendered as following screenshot! enter image description here

like image 2
Vikas Patel Avatar answered Oct 23 '22 12:10

Vikas Patel