---
layout: posts
title: Api - Text Class
---
Constructors
constructor
- new Text(font: Font, text: string, fontSize: number, combine?: boolean, centerCharacterOrigin?: boolean, bezierAccuracy?: number, opentypeOptions?: RenderOptions): Text
-
Parameters
-
font: Font
-
text: string
-
fontSize: number
-
Default value combine: boolean = false
-
Default value centerCharacterOrigin: boolean = false
-
Optional bezierAccuracy: number
-
Optional opentypeOptions: RenderOptions
Model of the text.
Methods
Static glyphToModel
- glyphToModel(glyph: Glyph, fontSize: number, bezierAccuracy?: number): IModel
-
Parameters
-
glyph: Glyph
-
fontSize: number
-
Optional bezierAccuracy: number
Model of the glyph.
Renders text in a given font to a model.