text
(
content
,
font
,
points
,
color
)
Creates a graphic with the text rendered using the specified font, size and color.
When the indicated True-Type Font is not found in the system, a very basilar font that is always available is used instead. The resulting graphic has the minimal size that still fits the whole text.
The pinning position is horizontally aligned on the left and vertically on the baseline of the text.
content
the text to render
font
the name of the font (e.g., “Arial” or “Fira Sans”)
points
size in typographic points (e.g., 16)
color
the color to be used to render the text
show_graphic(text('PyTamaro', 'Fira Sans', 32, red))
PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI
Privacy Policy • Platform Version ede3c94 (Fri, 23 May 2025 14:43:18 GMT)