MCPcopy Index your code
hub / github.com/arduino/Arduino / getFont

Method getFont

app/src/processing/app/Theme.java:471–482  ·  view source on GitHub ↗
(String attr)

Source from the content-addressed store, hash-verified

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.

Callers 14

applyPreferencesMethod · 0.95
paintComponentMethod · 0.95
applyPreferencesMethod · 0.95
EditorConsoleMethod · 0.95
applyPreferencesMethod · 0.95
EditorToolbarMethod · 0.95
EditorLineStatusMethod · 0.95
GraphPanelMethod · 0.95
EditorStatusMethod · 0.95
updateStyleMethod · 0.45

Calls 5

getFontMethod · 0.95
getDefaultMethod · 0.95
setMethod · 0.95
scaleMethod · 0.95
getSizeMethod · 0.45

Tested by

no test coverage detected