Skip to content
This repository was archived by the owner on Mar 9, 2021. It is now read-only.

Commit 52001a2

Browse files
committed
Fixes #53: --css required to write a CSS file.
1 parent 157e988 commit 52001a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmd.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ if( argv.subset ) {
6161
// glyphhanger --subset=*.ttf --US_ASCII (reduce to US_ASCII characters)
6262
// glyphhanger --subset=*.ttf --US_ASCII --whitelist=ABCD (reduce to US_ASCII union with whitelist)
6363
// glyphhanger --family='My Serif' (outputs results for specific family)
64-
// glyphhanger --family='My Serif' -css (outputs results for specific family with a font-face block)
64+
// glyphhanger --family='My Serif' --css (outputs results for specific family with a font-face block)
6565
// glyphhanger --subset=*.ttf --family='My Serif' (subset group of fonts to results for specific family)
6666
// glyphhanger --subset=*.ttf --family='My Serif' -css (subset group of fonts to results for specific family and a font-face block)
6767
// glyphhanger --subset=*.ttf --output=dist/ (change the output directory for subset files)

src/GlyphHangerFontFace.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ ${content.join("\n")}
7070
}
7171

7272
writeCSSFiles() {
73-
if(!this.subset) {
73+
if(!this.subset || !this.cssOutput) {
7474
return;
7575
}
7676

0 commit comments

Comments
 (0)