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

Method textLineImpl

core/src/processing/core/PGraphics.java:5108–5119  ·  view source on GitHub ↗

Implementation of actual drawing for a line of text.

(char[] buffer, int start, int stop,
                              float x, float y)

Source from the content-addressed store, hash-verified

5106 * Implementation of actual drawing for a line of text.
5107 */
5108 protected void textLineImpl(char[] buffer, int start, int stop,
5109 float x, float y) {
5110 for (int index = start; index < stop; index++) {
5111 textCharImpl(buffer[index], x, y);
5112
5113 // this doesn't account for kerning
5114 x += textWidth(buffer[index]);
5115 }
5116// textX = x;
5117// textY = y;
5118// textZ = 0; // this will get set by the caller if non-zero
5119 }
5120
5121
5122 protected void textCharImpl(char ch, float x, float y) { //, float z) {

Callers 1

textLineAlignImplMethod · 0.95

Calls 2

textCharImplMethod · 0.95
textWidthMethod · 0.95

Tested by

no test coverage detected