EssentialGG / Elementa

A simple, declarative GUI library for Minecraft
GNU Lesser General Public License v3.0
351 stars 30 forks source link

Text: Update `getStringSplitToWidth` to calculate entire string width when determining a line instead of summing the width of each word individually #90

Closed Sk1er closed 2 years ago

Sk1er commented 2 years ago

Otherwise, some lines will have too much text as truncating shadow from each word individually will lead to a calculated line width different from the actual.