Power Apps text width formulas
Inspired by this Reddit post, this CodePen creates formulas that can be used to determine text widths based on the content of a text component in Power Apps. It uses JavaScript to inspect the width of every character and then generates a formula that groups these characters.
This might be useful in scenarios where you need a text component to be the most minimal width in a horizontal container, like if it were an item of a flexed element in HTML.
In the end, this functionality was not used, and the HTML component with inline flex styles was used instead.