API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

T

typeFontStyle

@codexo/exojs / rendering / stable

CSS font-style values accepted by Canvas 2D. `'oblique'` slants an upright face by a fixed angle. Where a family ships a real italic the browser resolves `'italic'` to it and `'oblique'` to the synthesised slant; where it does not, both end up synthesised and look the same.

0
props
0
methods
0
events
Import
import { FontStyle } from '@codexo/exojs'

CSS font-style values accepted by Canvas 2D.

`'oblique'` slants an upright face by a fixed angle. Where a family ships a real italic the browser resolves `'italic'` to it and `'oblique'` to the synthesised slant; where it does not, both end up synthesised and look the same.

Definition1
"italic" | "normal" | "oblique"
Source