I am working with a CMS that escapes HTML, so I was wondering if Unicode could be a solution. (This is to be used in a database field, which is then read and put in a <p>
tag after being html-encoded.)
I am trying to achieve the justification of a text like in the image. I am trying to send the 'text2' part of text to the extreme right of the line.
Short answer: no.
Unicode works at the character level where as Justification is to do with layout which is dependent on things such as page width and font / font size.
There are some things that layout will use Unicode for such as the line break algorithm, but the width of a character is highly dependent on the font, c.f. the difference in width of i
between fixed with and proportionally spaced font.