Interface CanvasText
interface CanvasText {
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
fillText(text: string, x: number, y: number, maxWidth?: number): void;
measureText(text: string): TextMetrics;
strokeText(text: string, x: number, y: number, maxWidth?: number): void;
}
Hierarchy
- CanvasText (view full)
Index
Methods
Methods
fillText
measureText
- measure
Text (text): TextMetrics Parameters
- text: string
Returns TextMetrics
MDN Reference