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

Method getTextWidth

core/src/processing/opengl/PJOGL.java:492–498  ·  view source on GitHub ↗
(Object font, char[] buffer, int start, int stop)

Source from the content-addressed store, hash-verified

490
491
492 @Override
493 protected int getTextWidth(Object font, char[] buffer, int start, int stop) {
494 // maybe should use one of the newer/fancier functions for this?
495 int length = stop - start;
496 FontMetrics metrics = getFontMetrics((Font) font);
497 return metrics.charsWidth(buffer, start, length);
498 }
499
500
501 @Override

Callers

nothing calls this directly

Calls 1

getFontMetricsMethod · 0.95

Tested by

no test coverage detected