Module

x/canvas/types.ts

Canvas API for Deno, ported from canvaskit-wasm (Skia).
Go to Latest
interface TextStyle
import { type TextStyle } from "https://deno.land/x/canvas@v1.0.0/types.ts";

Properties

optional
backgroundColor: InputColor
optional
color: InputColor
optional
decoration: number
optional
decorationColor: InputColor
optional
decorationThickness: number
optional
decrationStyle: DecorationStyle
optional
fontFamilies: string[]
optional
fontFeatures: TextFontFeatures[]
optional
fontSize: number
optional
fontStyle: FontStyle
optional
foregroundColor: InputColor
optional
heightMultiplier: number
optional
letterSpacing: number
optional
locale: string
optional
shadows: TextShadow[]
optional
textBaseline: TextBaseline
optional
wordSpacing: number