infundibulum

Getting the font-family of selected text?

November 30th, 2005

I have the Firefox DOM Inspector doohickey (which you should have too if you do any significant amount of web design), and also a plugin called “Inspect Element.”

One cool trick you can do once you have all this set up is to highlight some text, click “Inspect element” in the context menu, and then select “Computed Style” from the dropdown in the right-hand pane of the DOM Inspector. Then you can go and look at font-family and see just what fonts are specified for the text you selected.

So, here’s my question:

It must be possible to access this info from Javascript. Then, I could make a one-click bookmarklet so I could select some text and have the font-family value pop up.

That would be fly. So… anyone know how to do it?

Bueller? Bueller?

I for one welcome our Browser Overlords

November 28th, 2005

A random thing which annoys me.

November 14th, 2005

Cool BBC Documentaries on Odeo

November 9th, 2005

Killer App

November 8th, 2005

The riots in France

November 8th, 2005

Mojibake

November 2nd, 2005

Joel whines some more, and I whine back

November 2nd, 2005