MCPcopy Index your code
hub / github.com/benfry/processing4 / getFont

Method getFont

app/src/processing/app/Preferences.java:350–359  ·  view source on GitHub ↗
(String familyAttr, String sizeAttr, int style)

Source from the content-addressed store, hash-verified

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 // . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Callers 2

updateThemeMethod · 0.95
updateThemeMethod · 0.95

Calls 5

getIntegerMethod · 0.95
getMethod · 0.95
getMonoFontNameMethod · 0.95
getMonoFontMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected