(String attr)
| 469 | } |
| 470 | |
| 471 | static public Font getFont(String attr) { |
| 472 | Font font = PreferencesHelper.getFont(table, attr); |
| 473 | if (font == null) { |
| 474 | String value = getDefault(attr); |
| 475 | set(attr, value); |
| 476 | font = PreferencesHelper.getFont(table, attr); |
| 477 | if (font == null) { |
| 478 | return null; |
| 479 | } |
| 480 | } |
| 481 | return font.deriveFont((float) scale(font.getSize())); |
| 482 | } |
| 483 | |
| 484 | /** |
| 485 | * Returns the default font for text areas. |
no test coverage detected