Padding spaces in labels?

This is probably an obvious question.

I have a label which is anchored at the center, with center alignment. I want to fill it with text like:

Left<------------->Right

Where “<------------>” represents multiple spaces. The trouble is that “something” is replacing all the multiple spaces with a single space (and even happened in this forum post)

So what magic do I need to insert into my label text in order to create spaces that don’t disappear?

I tried using multiple &nbsp;, but all that did was print out &nbsp; multiple times :rofl:

White-space pre

What you are attempting may be a bad idea. It may not scale well if the user has different font settings, etc. Instead you should use two labels - one left justified and one right justified.

I’m aware of the potential problems, but this is really a special case for which I am willing to accept any issues