Justineo / Fi
A snippet for inspecting font-family usage in a webpage.
Stars: ✭ 33
Programming Languages
javascript
184084 projects - #8 most used programming language
fi
A snippet for inspecting font-family usage in a webpage.
What's it for?
To have a quick look into font-family
usage in a webpage.
Texts inside these elements will be ignored: script
, noscript
, style
, iframe
, option
.
Invisible elements won't be taken into account as well, which are verified by any of the following criteria:
- with
opacity: 0
- with
display: none
- with
visibility: hidden
- with
text-indent
value no larger than-512
(an intuitive value) or the value equals to100%
(which are common ways of hiding text for icons or title images) - with computed area no larger than 1px² and with
overflow
value not equal tovisible
(which are common ways to provide accessibility enhancement, see GitHub'sa.accessibility-aid
at the begining ofbody
) - with
clip: rect(1px, 1px, 1px, 1px)
(another way of hiding text) - with invisible
parentNode
according to the criteria above
The result will sort all used font-family
values by the number of glyphs they apply to. ie. most used one will be at the top of the result list.
Usage
Bookmarklet
- Open http://justineo.github.io/fi/
- Drag the fi link in the middle of the page onto your browser's bookmark bar
- Open the webpage you'd like to inspect
- Click the bookmarklet you just added
- View the result
Bookmarklets can be blocked under certain security policies so browser extensions are more recommended.
Browser Extensions
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].