tags:

views:

663

answers:

3

My css specifies "font-family: helvetica, arial, sans-serif;" for the whole page. It looks like Verdana is being used instead on some parts. I would like to be able to verify this.

I've tried copying and pasting from my browser into Word, but it's not preserving the font.

Is there some way to determine which font is actually being used for a section of text?

Firebug will give me the list of fonts as above[1], but I don't see a way to determine which one of the fonts is being used.

  1. It turns out the wrong list was being used, which solved my original Verdana problem. But I'm still curious if there's a way to identify the actual rendering font.
+1  A: 

You could try checking that specific section with Firebug for Firefox. It should give you all the exact properties.

jeroen
That still gives me the list, not the specific one it's using...But on a second check, Verdana has somehow gotten into the font-family list, which would be the cause of my original problem. So, thanks.
alynna
Firebug will also tell you which rules are firing to give the element that font - very useful for working out where your CSS is going wrong.
RichieHindle
Safari 4 Beta has a WebInspector,too (could be a skinned firebug)
vikingosegundo
I think you will always get the complete list, whatever tool you use. The font used is the first on in the list that is installed on your computer.
jeroen
A: 

You can write out a piece of text in a known font and size, and determine the width of the DIV using JavaScript. If the DIV comes out to a different width, you know the font is not right.

Diodeus
+2  A: 

The FontFinder plugin for Firefox does exactly what you want. After installing, highlight a block of text, right click and go to FontFinder -> Analyze Selection. It will tell you the actual font being used as well as a other information like font-family, spacing, color, etc.

jeremy
That sounds like exactly what I want. Thanks!
alynna