ITextLayouter

Undocumented in source.

Members

Aliases

put
alias put = write

Append text to the current page.

Functions

clear
void clear()

Clear all text buffers.

color
void color(Brush color)
Brush color()

Current text color. This applies to all subsequent text until it is changed.

endPage
void endPage()

Continue layout on a new page.

endParagraph
void endParagraph()

End the current and start a new paragraph. The first paragraph is created implicitly. This is equivalent to writing two newline characters:

fontFace
void fontFace(string face)
string fontFace()

Current font size. This applies to all subsequent text until it is changed.

fontSize
void fontSize(float mm)
float fontSize()

Current font size. This applies to all subsequent text until it is changed.

fontStyle
void fontStyle(FontStyle style)
FontStyle fontStyle()

Current font style. This applies to all subsequent text until it is changed.

fontWeight
void fontWeight(FontWeight weight)
FontWeight fontWeight()

Current font weight. This applies to all subsequent text until it is changed.

layout
ILayoutBlock[] layout(ILocale locale)

Compute the text layout with the current text and text dimensions and return the pages which can be rendered by an IRenderingContext2D.

lineSpacing
void lineSpacing(float factor)
float lineSpacing()

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
void restore()

Restore the last saved state.

save
void save()

Save the current state, i.e. fontSize, color, fontFace, fontWeight, fontStyle and textAlign.

textAlign
void textAlign(TextAlign align_)
TextAlign textAlign()

Current text alignment strategy. This applies to the whole paragraph when it ends either implicitly via layout() or explicitly via newParagraph().

textHeight
void textHeight(float y)
float textHeight()

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.

textWidth
void textWidth(float x)
float textWidth()

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.

write
void write(string text)

Append text to the current page.

Meta