An adaptation of Tim Brown's Web Font Specimen for Compass
OTHER License
Web Font Specimen is a tool built by Tim Brown(Nice Web Type) to help web designers make type-setting decisions. It was ported to Compass by Eric Meyer.
sudo gem install webfontspecimen
compass create <project name> -r webfontspecimen -u webfontspecimen
Edit the project configuration file and add:
require 'webfontspecimen'
Add your typeface(s) to your specified fonts
folder.
fonts_dir
in your config.rb
file.For multiple specimens
_type_specimen_1.scss
@import "_type_specimen_NEW_NUMBER.scss";
to specimen.scss
Add your font name and file path to $font-name
and $font-file-name
to _type_specimen_1.scss
$pretty-font-name
(displays on the specimen.html
page)Make adjustments to specimen.html
Enjoy!