Left and right justification of a rich text

Hello Psychtoolbox group,

as the title of the conversation says I need to display a rich text as a stimulus and I would like it to be both left and right justified.

For the moment I'm using DrawFormattedText with left alignment and setting the 'wrapat' parameter so that the left and right margins look similar, but I know this is not the perfect solution.

Do you know how can I solve this problem?


Thank you in advance.


Best regards,


Clelia




I'm using the PTB on Matlab2014a for Windows.

Best regards,

Clelia Villasco


On Tuesday, July 1, 2014 6:38 PM, "clelia.villasco@... [PSYCHTOOLBOX]" <PSYCHTOOLBOX@yahoogroups.com> wrote:


 
Hello Psychtoolbox group,
as the title of the conversation says I need to display a rich text as a stimulus and I would like it to be both left and right justified.
For the moment I'm using DrawFormattedText with left alignment and setting the 'wrapat' parameter so that the left and right margins look similar, but I know this is not the perfect solution.
Do you know how can I solve this problem?

Thank you in advance.

Best regards,

Clelia