MCPcopy Index your code
hub / github.com/processing/processing / getFontMetrics

Method getFontMetrics

core/src/processing/opengl/PJOGL.java:466–469  ·  view source on GitHub ↗

Convenience method to get a legit FontMetrics object. Where possible, override this any renderer subclass so that you're not using what's returned by getDefaultToolkit() to get your metrics.

(Font font)

Source from the content-addressed store, hash-verified

464 * returned by getDefaultToolkit() to get your metrics.
465 */
466 @SuppressWarnings("deprecation")
467 private FontMetrics getFontMetrics(Font font) { // ignore
468 return Toolkit.getDefaultToolkit().getFontMetrics(font);
469 }
470
471
472 /**

Callers 9

getFontRenderContextMethod · 0.95
getFontAscentMethod · 0.95
getFontDescentMethod · 0.95
getTextWidthMethod · 0.95
PFontMethod · 0.45
getShapeMethod · 0.45
textAscentMethod · 0.45
textDescentMethod · 0.45
textWidthImplMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected