Login  Register

Re: Text justification in text ROIs

Posted by Rasband, Wayne (NIH/NIMH) [E] on Jun 09, 2011; 3:12am
URL: http://imagej.273.s1.nabble.com/Text-justification-in-text-ROIs-tp3684315p3684316.html

On Jun 7, 2011, at 4:34 AM, Jan Eglinger wrote:

> Dear all,
>
> is it possible to have Text ROIs centered or right-justified?
>
> I know of the macro functions setJustification("center") and
> drawString("line\nbreak", x, y), but I would like to have a multi-line
> text selection centered without the need of using macros, if possible.

Text selections can be centered or right-justified in the 1.45j daily build. Simply select "Center" or "Right" in the third drop down menu in the "Fonts" window, which is opened by using the Edit>Options>Fonts command or by double clicking on the text tool icon.

-wayne