MCPcopy Create free account
hub / github.com/benfry/processing4 / getFontMetrics

Method getFontMetrics

core/src/processing/opengl/PJOGL.java:464–467  ·  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

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

Callers 7

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

Calls

no outgoing calls

Tested by

no test coverage detected