# Right Justify Paragraph

**URL:** <https://psychtoolbox.discourse.group/t/right-justify-paragraph/321>\
**Category:** Uncategorized\
**Created:** [June 4, 2013, 9:19pm UTC](https://psychtoolbox.discourse.group/t/right-justify-paragraph/321 "2013-06-04T21:19:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [June 4, 2013, 9:19pm UTC](https://psychtoolbox.discourse.group/t/right-justify-paragraph/321/1 "2013-06-04T21:19:44Z")

</div>

Hello,
  

I am programming an experiment that displays paragraphs of Farsi text, which reads right-to-left. I am using DrawFormattedText to wrap the string into a paragraph that fits nicely on the screen. My problem is that the paragraph is left-justified by default, and I need to be able to justify it to the right so it looks appropriate to the Farsi reader. &nbsp;I have tried using the 'RightToLeft' option, and this reverses that character order but does not change the left justification of the text. Ideally, I would like to avoid breaking the paragraph into separate lines and aligning each to the right individually. Is there a command or option that would allow me to right-justify a paragraph of text?

  

Thanks for any help you can offer.

  

Best,

Christine

  

------------------------------------------------

Dr. Christine M. Tipper

Postdoctoral Research Associate

Brain and Creativity Institute

University of Southern California

[tipper@...](mailto:tipper@...)
