Hi !
TextLayout::justification is private
can you considere to add an accessor in juce_TextLayout.h like
Justification getJustification() const noexcept { return justification; }
Or a tool like
Point<float> getOriginForArea(const Rectangle<float>& area) const noexcept
{ return justification.appliedToRectangle (Rectangle<float> (width, getHeight()), area).getPosition(); }
and use it in TextLayout::draw
My client code need this to compute hit testing.
Thanks in advance for this !
Best regards.
