Interface TextRenderingStyle

interface TextRenderingStyle {
    fontFamily: string;
    fontStyle?: string;
    fontVariant?: string;
    fontWeight?: string;
    renderingStyle: RenderingStyle;
    size: number;
}

Properties

fontFamily: string

Name of the font.

fontStyle?: string

For example, italic. Like CSS font-style.

fontVariant?: string
fontWeight?: string

For example, bold. Like CSS font-weight.

renderingStyle: RenderingStyle

Fill and stroke of the text.

size: number
OpenSource licenses