Append text to the current page.
Clear all text buffers.
Current text color. This applies to all subsequent text until it is changed.
Continue layout on a new page.
End the current and start a new paragraph. The first paragraph is created implicitly. This is equivalent to writing two newline characters:
Current font size. This applies to all subsequent text until it is changed.
Current font size. This applies to all subsequent text until it is changed.
Current font style. This applies to all subsequent text until it is changed.
Current font weight. This applies to all subsequent text until it is changed.
Compute the text layout with the current text and text dimensions and return the pages which can be rendered by an IRenderingContext2D.
Current line spacing relative to the current font size. This applies to the whole paragraph when it ends either implicitly via layout() or explicitly via newParagraph().
Restore the last saved state.
Save the current state, i.e. fontSize, color, fontFace, fontWeight, fontStyle and textAlign.
Current text alignment strategy. This applies to the whole paragraph when it ends either implicitly via layout() or explicitly via newParagraph().
Size of the area were the text is laid out. The text is automatically broken across pages. Both dimensions may be infinite which suppresses line breaks in case of the width and page breaks in case of the height.
Size of the area were the text is laid out. The text is automatically broken across pages. Both dimensions may be infinite which suppresses line breaks in case of the width and page breaks in case of the height.
Append text to the current page.