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

Method text

core/src/processing/core/PGraphics.java:4602–4619  ·  view source on GitHub ↗

( begin auto-generated from text.xml ) Draws text to the screen. Displays the information specified in the data or stringdata parameters on the screen in the position specified by the x and y parameters and the optional z parameter. A default font will be used unl

(char c, float x, float y)

Source from the content-addressed store, hash-verified

4600 * @see_external String
4601 */
4602 public void text(char c, float x, float y) {
4603 if (textFont == null) {
4604 defaultFontOrDeath("text");
4605 }
4606
4607 if (textAlignY == CENTER) {
4608 y += textAscent() / 2;
4609 } else if (textAlignY == TOP) {
4610 y += textAscent();
4611 } else if (textAlignY == BOTTOM) {
4612 y -= textDescent();
4613 //} else if (textAlignY == BASELINE) {
4614 // do nothing
4615 }
4616
4617 textBuffer[0] = c;
4618 textLineAlignImpl(textBuffer, 0, 1, x, y);
4619 }
4620
4621
4622 /**

Callers

nothing calls this directly

Calls 10

defaultFontOrDeathMethod · 0.95
textAscentMethod · 0.95
textDescentMethod · 0.95
textLineAlignImplMethod · 0.95
translateMethod · 0.95
textWidthMethod · 0.95
textSentenceMethod · 0.95
floorMethod · 0.95
nfsMethod · 0.95
minMethod · 0.45

Tested by

no test coverage detected