Squish text on the X to fit

I have the same need as the user who posted this question: [Squish Text in [Content removed] However, I do not need it to be an editable text, just a standard text block. in that question, Cody Albert posted a screenshot of his blueprints that should give me what I need, but there is an issue with it. He sets the render scale of the text to squish it. He’s on the right track, but there is an issue. Here is the result of his blueprints:

[Image Removed]

As you can see, the text itself is offset to the right for some reason. A hacky solution is to use negative padding, but I am not sure how to calculate what the value should be for the negative padding since the size of the text block can change, and the text itself might change.

Here is what the desired result should look like:

[Image Removed]

Hi,

It looks like I forgot one detail when I posted that original blueprint: You’ll need to set the X pivot (under Render Transform) to 0 as well. That should align the scaled text to the left of the border, and you’ll also want to clear the border padding as well.

Best,

Cody

That was it, thanks!