( 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)
| 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 | /** |
nothing calls this directly
no test coverage detected