On Jun 10, 2012, at 8:18 AM, David Knecht wrote:
> In Label Stacks, what determines the font and style if the "use text tool font" is unchecked?
> What command would set this in a macro?
The Image>Stacks>Label command uses "SansSerif" and PLAIN if "Use text tool font" is unchecked, otherwise it uses the font and style defined in the Edit>Options>Fonts dialog box. Here is a macro example that sets the font to "Times" and the style to BOLD+ITALIC:
newImage("Untitled", "8-bit Black", 500, 500, 100);
style = 3; // Font.BOLD+Font.ITALIC;
call("ij.gui.TextRoi.setFont", "Times", 80, style)
run("Label...", "format=0000 x=50 y=200 font=80 text=Image use use_text");
-wayne
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html