I'm using Google webfonts. Initially, I include all the weights of a given family so I can choose all the ones I want. So for example:
<link href='http://fonts.googleapis.com/css?family=Roboto:300,300italic,400,400italic,500,500italic,700,700italic,900,900italic' rel='stylesheet'>
Once I'm done, I only want the weights I ended up using to be fetched on page load to minimize size. My finished link looks something like
<link href='http://fonts.googleapis.com/css?family=Roboto:400,400italic,900,900italic' rel='stylesheet'>
I suppose I can scroll thru my entire CSS directory and eyeball all the pages to find all the weights I used, but that's error-prone. At a glance, how can I know exactly, which weights I ended up using?
PS: A few things I tried:
- Firebug's Net panel lets you see whether the google fonts script was called but does not specify which weights were used.
- Chengyin Liu's very nice WhatFont tool (http://chengyinliu.com/whatfont.html) but that only lets you hover over a single element.
Update April 2020
For what it's worth, I no longer use any of the solutions below, I've been using a Chrome plugin called FontsNinja for a few years and it does an amazing job of pinpointing fonts and weights used on pages.