orx-text-writer
Writing texts with layouts
The TextWriter class was previously called Writer.
Find usage examples in the guide.
The code in orx-text-writer was previously found under openrndr-draw in the openrndr repository.
Demos
DemoTextWriter01
This demo features the drawing of a centered rectangle and the addition of styled text inside the rectangle. The application manages the drawing of shapes and implementation of text rendering with specific font and settings.
The following operations are performed:
- A rectangle is created from the center of the drawing bounds.
- The rectangle is drawn without a fill and with a white stroke.
- A custom font is loaded and applied to the drawer.
- A
TextWriteris utilized to display the text "hello world" inside the rectangle, adhering to specific styling and formatting rules.
Key Components:
applicationestablishes the visual environment.Rectangleprovides a way to define the rectangular area.drawerenables isolated operations for drawing elements.writerfacilitates text rendering with alignment and spacing adjustments.


