Skip to content

CanvasText

[<Interface>]
type CanvasText =
    static member Create (fillText: Action<string,float,float,float option>, measureText: string -> TextMetrics, strokeText: Action<string,float,float,float option>) : CanvasText
    abstract member fillText (text: string, x: float, y: float, ?maxWidth: float) : unit
    abstract member measureText (text: string) : TextMetrics
    abstract member strokeText (text: string, x: float, y: float, ?maxWidth: float) : unit
AssemblyXantham.Fable.Core.TS
Attributes[<Interface>]

Methods

static member Create (fillText: Action<string,float,float,float option>, measureText: string -> TextMetrics, strokeText: Action<string,float,float,float option>) : CanvasText
abstract member fillText (text: string, x: float, y: float, ?maxWidth: float) : unit
abstract member measureText (text: string) : TextMetrics
abstract member strokeText (text: string, x: float, y: float, ?maxWidth: float) : unit