Creates text from a font and text parameters, or copies text retaining font and preprocessor references.
optionsStatic ReadonlyClusterGlyph cluster grouping enumeration.
Static ReadonlyLineLine alignment enumeration.
Static ReadonlyStyleText style bit flags.
Static ReadonlyTextGlyph layout direction enumeration.
Static ReadonlyTextHorizontal and vertical writing direction enumeration.
ProtecteddrawSubclasses draw synchronously and may compose objects via target.draw(); states is a copy for this call.
thistargetstatesReturns the character size in pixels.
Returns a read-only reference to the current font.
Returns text axis-aligned bounds after applying the object's transform.
Return the read-only cached parent-to-local inverse transform, or the identity matrix when not invertible.
Returns the letter spacing factor.
Returns the line spacing factor.
Returns the outline thickness in pixels.
Returns mutable outline vertex data; retrieve it again after the next geometry rebuild.
Shapes on demand and returns glyph layout views; cluster is a JS UTF-16 index.
Returns the current JS string.
Return the read-only cached local-to-parent transform. Later reads may update the same object.
Returns mutable fill vertex data; retrieve it again after the next geometry rebuild.
Add offset to the current position.
thisoffsetAdd angle to the current rotation.
thisangleMultiply the current X/Y scale factors by the components of factors.
thisfactorsSets the character size in pixels.
thissizeSets the glyph cluster grouping strategy for shaping.
thisgroupingCopies the fill color; existing geometry is only recolored.
thiscolorSets the font and retains its reference.
thisfontSets a synchronous glyph appearance callback, or null to remove it; the callback runs when geometry is rebuilt.
thisprocessorSets the letter spacing factor; 1 is the default spacing.
thisfactorSets the alignment of multiline text.
thisalignmentSets the line spacing factor; 1 is the font's default line spacing.
thisfactorSet the local origin around which rotation and scaling take place.
thisoriginCopies the outline color; existing geometry is only recolored.
thiscolorSets the outline thickness in pixels.
thisthicknessSet the object's origin in parent coordinates, copying position.
thispositionSet the rotation; positive angles are clockwise in screen coordinates.
thisangleSet X/Y scale factors; (1, 1) is original size and negatives flip axes.
thisfactorsSets the displayed string, reshaping on the next query or draw.
thisvalueSets TextStyle bit flags, combining styles such as bold and italic.
thisstyleSets horizontal or vertical writing direction.
thisorientation
SFML shaping with native vertex storage and batched draw snapshots.