()
| 201 | } |
| 202 | |
| 203 | Font getScaledFont() { |
| 204 | if (font==null) |
| 205 | font = ImageJ.SansSerif14; |
| 206 | double mag = getMagnification(); |
| 207 | if (nonScalable || imp==null || mag==1.0) |
| 208 | return font; |
| 209 | else |
| 210 | return font.deriveFont((float)(font.getSize()*mag)); |
| 211 | } |
| 212 | |
| 213 | /** Renders the text on the image. Draws the text in |
| 214 | * the foreground color if ip.setColor(Color) has |
no test coverage detected