the text that was measured
the style that was measured
the measured width of the text
the measured height of the text
an array of the lines of text broken by new lines and wrapping if specified in style
an array of the line widths for each line matched to lines
the measured line height for this style
the maximum line width for all measured lines
the font properties object from TextMetrics.measureFont
Convienience function for logging each line added during the wordWrap method
Determines whether we should collapse newLine chars
Determines whether we should collapse breaking spaces
Gets & sets the widths of calculated characters in a cache object
Determines if char is a newline.
Splits a string into words, breaking-spaces and newLine characters
trims breaking whitespaces from string
Applies newlines to a string to have it optimally fit into the horizontal bounds set by the Text object's wordWrapWidth property.
Overridable helper method used internally by TextMetrics, exposed to allow customizing the class's behavior.
It allows one to determine whether a pair of characters should be broken by newlines For example certain characters in CJK langs or numbers. It must return a boolean.
whether to break word or not
Overridable helper method used internally by TextMetrics, exposed to allow customizing the class's behavior.
It allows one to customise which words should break Examples are if the token is CJK or numbers. It must return a boolean.
The style attr break words
whether to break word or not
Clear font metrics in metrics cache.
Determines if char is a breaking whitespace.
It allows one to determine whether char should be a breaking whitespace For example certain characters in CJK langs or numbers. It must return a boolean.
The character
True if whitespace, False otherwise.
Calculates the ascent, descent and fontSize of a given font-style
String representing the style of the font
Font properties object
Measures the supplied string of text and returns a Rectangle.
the text to measure.
the text style to use for measuring
measured width and height of the text.
Overridable helper method used internally by TextMetrics, exposed to allow customizing the class's behavior.
It is called when a token (usually a word) has to be split into separate pieces in order to determine the point to break a word. It must return an array of characters.
The token to split
The characters of the token
Generated using TypeDoc
The TextMetrics object represents the measurement of a block of text with a specified style.
PIXI