(String familyAttr, String sizeAttr, int style)
| 348 | |
| 349 | |
| 350 | static public Font getFont(String familyAttr, String sizeAttr, int style) { |
| 351 | int fontSize = getInteger(sizeAttr); |
| 352 | |
| 353 | String fontFamily = get(familyAttr); |
| 354 | if ("processing.mono".equals(fontFamily) || |
| 355 | Toolkit.getMonoFontName().equals(fontFamily)) { |
| 356 | return Toolkit.getMonoFont(fontSize, style); |
| 357 | } |
| 358 | return new Font(fontFamily, style, fontSize); |
| 359 | } |
| 360 | |
| 361 | |
| 362 | // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . |
no test coverage detected