text/styler
Apply styling to fonts.
- font Font setting. Default value "10px sans-serif".
- textAlign Text alignment setting. start (default), end, left, right, center.
- textBaseline Baseline alignment setting. top, hanging, middle, alphabetic (default), ideographic, bottom.
- direction Directionality. ltr, rtl, inherit (default).
- letterSpacing Letter spacing. Default: 0px.
- fontKerning Font kerning. auto (default), normal, none.
- fontStretch Font stretch. ultra-condensed, extra-condensed, condensed, semi-condensed, normal (default), semi-expanded, expanded, extra-expanded, ultra-expanded.
- fontVariantCaps Font variant caps. normal (default), small-caps, all-small-caps, petite-caps, all-petite-caps, unicase, titling-caps.
- textRendering Text rendering. auto (default), optimizeSpeed, optimizeLegibility, geometricPrecision.
- wordSpacing Word spacing. Default value: 0px
All typical properties are supported.
Specials:
fontWeight, weight
400
fontSize, size
10px
fontName, name
Arial
kerning
stretch
spacing
alignment
unpacks to [textAlign, textBaseline]
f = new FontStyle({ name: 'lexend deca' , size: 22 , align: [center, center] })
Meta Data
| filepath_exists | True |
| path | text/styler |
| filepath | text/styler.js |
| clean_files | () |