Text+
DevForum Topic
  • Welcome
  • Installation
  • Fundamentals
    • Introduction
    • Line breaks
    • Customization
      • Fonts
      • Scale-size
      • Truncation
    • Modification
    • Text bounds
  • Fine-control
    • Introduction
    • Full iteration
  • Specific indexing and iteration
  • Transform and style
  • Custom fonts
    • Introduction
    • Font to XML
    • XML to Lua
    • Upload font image
    • Import to Text+
Powered by GitBook
On this page
  1. Fundamentals

Modification

You can modify a text frame after the initial creation, like this:

TextPlus.Create(
	frame, -- Frame that already has text created within it.
	"This text has been modified!" -- New text.
)

You can even modify the customization after the creation, like this:

TextPlus.Create(
	frame,
	"This text has been modified!",
	{ -- New customization (optional).
		Size = 12 -- Overwrite size.
		-- Everything else will stay like before!
	}
)

It will keep all previous customization options, only overwriting with those you provide in the table.

If you want to get rid of any of the options, simply set it to false or any kind of invalid value — attempting to set it to nil will not work.

PreviousTruncationNextText bounds

Last updated 5 days ago