Text
TheText component renders text at a specified position.
| Name | Type | Description |
|---|---|---|
| text | string | The text to render |
| x | number | X coordinate (default: 0) |
| y | number | Y coordinate (default: 0) |
| font | SkFont | Font object from useFont |
TextPath
Render text along a path for creative typography effects.| Name | Type | Description |
|---|---|---|
| text | string | The text to render |
| path | SkPath | Path to follow |
| font | SkFont | Font object |
| initialOffset | number | Offset along path (default: 0) |
Glyphs
Render individual glyphs with precise control over positioning.| Name | Type | Description |
|---|---|---|
| glyphs | number[] | Array of glyph IDs |
| x | number | X coordinate (default: 0) |
| y | number | Y coordinate (default: 0) |
| font | SkFont | Font object |
TextBlob
UseTextBlob for advanced text rendering with pre-computed glyph positioning.
Text Styling
All text components support paint properties for styling:Related
- Fonts - Load and manage custom fonts
- Paragraphs - Advanced text layout and formatting
- Paint Properties - Styling options for text