Skip to content

toCssFont

toCssFont(fontStyle, fontWeight, fontSize, fontFamily): string

Convert font attributes to CSS font string

Parameters

fontStyle: string

fontWeight: number

fontSize: number

fontFamily: string

Returns

string

Source

graphics/utils.ts:114