TextTexture_v6 Op
Generates a texture of Text using one of the font ops
Summary (oneliner)
Render text into a texture.
Size parameter
AUTO - Texture Size will be calculated from fontsize and the amount of text. You may want to use another op to add linebreaks to the text.
MANUAL - texture height will be calculated automatically. Line breaks will be added when text overflows the given width in pixels.
Padding
Padding will add Pixels to the left,right,up and bottom sides of the texture. This will be added on top of the size parameter settings.
- Ops.Gl.Textures.TextTexture_v6
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
Example Patch textTexture example
INPUT PORTS
trigger input
text to be put in the texture
Rendering
check if rectangle with the texture should be drawn
size of the mesh
Font
the font to be used
font size
Texture
check if texture should be reused
show outlines for debugging
Text Color
r color of text
g color of text
b color of text
alpha value of texture
Background
OUTPUT PORTS
trigger output
width / height ratio of texture
texture output
aspect ratio of texture canvas
amount of lines in text
Patches using TextTexture_v6
Changelog
cloned op from Ops.Gl.Textures.TextTexture_v4 | pandur - 2023-05-17 19:19 | |
feature | force redraw when a font was loaded, to make sure we are using the correct font | pandur - 2024-01-11 13:58 |
cloned op from Ops.Gl.Textures.TextTexture_v5 | pandur - 2024-01-15 15:21 | |
bugfix | many small fixed with alignment, padding and text size | pandur - 2024-01-15 18:41 |
feature | added fixes for positioning with different paddings, alignments, negative lineheight add etc. | pandur - 2024-01-22 17:56 |
bugfix | Fix bug with text not rendered on first frame | pandur - 2024-05-23 12:54 |