Implementation of actual drawing for a line of text.
(char buffer[], int start, int stop,
float x, float y)
| 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) { |
no test coverage detected