Your web font utility belt. It can subset web fonts. It can find unicode-ranges for you automatically. It makes julienne fries.
Adds new --jsdom
mode (works with standard input)
Issues listed on Milestone.
Your web font utility belt. It can subset web fonts. It can show you what unicode-ranges are used on a web site (optionally per font-family). It can also subset web fonts automatically using the unicode-ranges it found. It makes julienne fries.
--cssSelector
to target a specific portion of a page (#17, #46) Thanks @patrickkettner!--onlyVisible
to only return text that is visible on a page (#11, #44) Thanks @patrickkettner!--css
now required when using --subset
to generate a CSS file (#53)font-variant: small-caps
(#51)--subset
failed when the font file had spaces in the filename (#50)All listed on the Milestone.
Your web font utility belt. It shows what unicode-ranges are used on a web site (optionally for a font-family or for each font-family). It can also subset web fonts. It makes julienne fries.
Small bug fix release: https://github.com/filamentgroup/glyphhanger/issues?q=is%3Aclosed+milestone%3Av3.0.2
--json
to segment results for each font-family
on a page.--family='Open Sans, Roboto'
to show results for one or more font-family
names. Pairs nicely with --subset
to create new files for a specific web font already in use on a static page.--css
to output @font-face
blocks for each font on a page (with correct unicode-range
already included). Pairs nicely with --subset
to put in the correct src
values for your subset files (will also create CSS files for you).:before
and :after
. This allows glyphhanger to work well with icon fonts.--LATIN
as a shortcut for whitelisting all of Latin character sets. Similar to already supported --US_ASCII
.--output
to change the output directory any files created: CSS files and new subset web fonts.DEBUG=glyphhanger glyphhanger http://example.com/
In this same vein, this release also removes --verbose
.--timeout
to change the timeout per URL (in millseconds, the default is 30000
ms).spider-pig
for the spider internally.Outputs Unicode code points by default now (formerly the --unicodes
option). For the previous output use --string
.
npm install glyphhanger