Thanks, text justification in ROIs work correctly now!
Here is another related issue:
I am trying to right justify text drawn with Overlay.drawString, but am unable to do so.
I cannot find any other way to get the text right justified.
See this example macro:
TextStr = "This the first line of the text\nThis is line two";
xPos = getWidth/2;
yPos = round(getHeight/7);
setFont("SansSerif", 28, "antialiased");
Overlay.drawString(TextStr, xPos, yPos*1);
//problem: text is not right justified as expected
I am using daily build ImageJ 1.52e with Java 1.6 on Windows 7/64-bit.
From: ImageJ Interest Group <[hidden email]> On Behalf Of Wayne Rasband
Sent: 10. juli 2018 07:12
To: [hidden email] Subject: Re: Wrong text justification in ROIs
> On Jul 9, 2018, at 8:45 AM, Stein Rørvik <[hidden email]> wrote:
> There is an issue with using Right justified text in ROIs.
> This only works if the fill color is set; it does not work with a transparent fill.
> This macro reproduces the issue; textStr3 is overlaid wrongly: