/** Sets the global font face, size and style that will be used by TextROIs interactively created using the text tool. */ public static void setFont(String fontName, int fontSize, int fontStyle) { setFont(fontName, fontSize, fontStyle, true); }
/** Sets the global font face, size and style that will be used by TextROIs interactively created using the text tool. */ public static void setFont(String fontName, int fontSize, int fontStyle) { setFont(fontName, fontSize, fontStyle, true); }
private void fontOptions() { final OptionsFont optionsFont = optionsService.getOptions(OptionsFont.class); final String fontName = optionsFont.getFont(); final int fontSize = optionsFont.getFontSize(); String styleName = optionsFont.getFontStyle(); final boolean smooth = optionsFont.isFontSmooth(); if (styleName == null) styleName = ""; int fontStyle = Font.PLAIN; if (styleName.equals("Bold")) fontStyle = Font.BOLD; else if (styleName.equals("Italic")) fontStyle = Font.ITALIC; else if (styleName.equals("Bold+Italic")) fontStyle = Font.BOLD + Font.ITALIC; TextRoi.setFont(fontName, fontSize, fontStyle, smooth); }
colorName = colorName2; TextRoi.setFont(font, fontSize, style, antialiased); TextRoi.setGlobalJustification(justification); Color fillColor = Colors.decode(fillc, null);
colorName = colorName2; TextRoi.setFont(font, fontSize, style, antialiased); TextRoi.setGlobalJustification(justification); Color fillColor = Colors.decode(fillc, null);