{"id":"anexpia/textwrapper","name":"textwrapper","scope":"anexpia","platform":"roblox","description":"Module to wrap text into multiple lines","version":"1.0.0","latest":"1.0.0","versions":["1.0.0"],"license":"MIT","licenseRating":"safe","licenseCaveats":[],"licenseVerified":true,"dependencies":{},"integrity":"30b4719cc0cf7533f1142185f77f1cf0aa43af5055fd482ef8bd5162b6afef67","likes":0,"downloads":0,"install":"forest install anexpia/textwrapper","url":"https://forest.dev/p/roblox/anexpia/textwrapper","files":"https://api.forest.dev/ai/package/roblox/anexpia/textwrapper/files","readme":"\n# TextWrapper\nA module to wrap text text into multiple lines as they'd normally be in textlabels.\n\n# Features\n* Very fast and caches previous results to accelerate future runs\n* Supports richtext\n* Can return offsets of characters provided in `CharactersToFind` array as Vector2's\n\n# API\n### TextWrapper.WrapText(TextSource, CharactersToFind) -> WrapTextResult\nTakes a textlabel or a table containing info about the text and its frame, and returns **WrapTextResult** table, which contains\n- Width: number - Width of all rext\n- Height: number - Height of all text\n- Lines: {Lineinfo} - Array containing Width, Height, and Content of each line.\n- CharacterOffsets: {Vector2}? - Array containing Vector2 offset of each character position provided in `CharactersToFind`, original order of the array is preserved and positions past string length are discarded.\n\n> [!WARNING]\n> CharacterOffsets currently doesn't support textalignment, and assumes that your text is aligned to top and left.\n\n### TextWrapper.ResetCache() -> ()\nResets font character cache that is used to accelerate **WrapText**()\n\n# License\nTextWrapper is licensed under the [MIT](LICENSE).","readmeTruncated":false}