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

Method textLineImpl

core/src/processing/core/PGraphics.java:5038–5049  ·  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

5036 * Implementation of actual drawing for a line of text.
5037 */
5038 protected void textLineImpl(char buffer[], int start, int stop,
5039 float x, float y) {
5040 for (int index = start; index < stop; index++) {
5041 textCharImpl(buffer[index], x, y);
5042
5043 // this doesn't account for kerning
5044 x += textWidth(buffer[index]);
5045 }
5046// textX = x;
5047// textY = y;
5048// textZ = 0; // this will get set by the caller if non-zero
5049 }
5050
5051
5052 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