TextTexture_v6 Op
Generates a texture of Text using one of the font ops
Summary (oneliner)
<p>Render text into a texture.</p> <h3>Size parameter</h3> <p>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.</p> <p>MANUAL - texture height will be calculated automatically. Line breaks will be added when text overflows the given width in pixels.</p> <h3>Padding</h3> <p>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.</p>
- 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
<p>trigger input</p>
<p>text to be put in the texture</p>
Rendering
<i>boolean</i>
)<p>check if rectangle with the texture should be drawn</p>
<p>size of the mesh</p>
<i>integer</i>
) Auto Manual<i>integer</i>
)<i>integer</i>
)<i>boolean</i>
)<i>boolean</i>
)Font
<p>the font to be used</p>
<p>font size</p>
<i>integer</i>
) left center right<i>integer</i>
) Top Middle Bottom<i>integer</i>
)<i>integer</i>
)<i>integer</i>
)Texture
<i>integer</i>
) nearest linear mipmap<i>integer</i>
)<i>integer</i>
) 0 1 2 4 8 16<i>boolean</i>
)<p>check if texture should be reused</p>
<i>boolean</i>
)<p>show outlines for debugging</p>
<i>boolean</i>
)Text Color
<p>r color of text</p>
<p>g color of text</p>
<p>b color of text</p>
<p>alpha value of texture</p>
Background
OUTPUT PORTS
<p>trigger output</p>
<p>width / height ratio of texture</p>
<p>texture output</p>
<p>aspect ratio of texture canvas</p>
<p>amount of lines in text</p>
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 |