postcss-font-family-fangsong
postcss-font-family-fangsong lets you use fangsong
in CSS, following the
CSS Fonts Module Level 4 specification.
/* becomes */
Usage
Add postcss-font-family-fangsong to your build tool:
npm install postcss-font-family-fangsong --save-dev
PostCSS
Add PostCSS to your build tool:
npm install postcss --save-dev
Use postcss-font-family-fangsong as a plugin:
;; ;
Gulp
Add Gulp PostCSS to your build tool:
npm install gulp-postcss --save-dev
Use postcss-font-family-fangsong in your Gulpfile:
;; gulp;
Grunt
Add Grunt PostCSS to your build tool:
npm install grunt-postcss --save-dev
Use postcss-font-family-fangsong in your Gruntfile:
; grunt; grunt;
Node
Use postcss-font-family-fangsong to process your CSS:
; postcssFontFangsong;
Options
family
The family: string | string[]
option defines the fallback families used to polyfill fangsong
.
It accepts an array or a comma-separated string.
; ;
preserve
The preserve: boolean
option controls whether fangsong
should be preserved in the transformed CSS output.
Its default value is true
;
When both family
and preserve
are specified, preserve
is a no-op.