Handles placement of a text line, then calls textLineImpl to actually render at the specific point.
(char buffer[], int start, int stop,
float x, float y)
| 5020 | * to actually render at the specific point. |
| 5021 | */ |
| 5022 | protected void textLineAlignImpl(char buffer[], int start, int stop, |
| 5023 | float x, float y) { |
| 5024 | if (textAlign == CENTER) { |
| 5025 | x -= textWidthImpl(buffer, start, stop) / 2f; |
| 5026 | |
| 5027 | } else if (textAlign == RIGHT) { |
| 5028 | x -= textWidthImpl(buffer, start, stop); |
| 5029 | } |
| 5030 | |
| 5031 | textLineImpl(buffer, start, stop, x, y); |
| 5032 | } |
| 5033 | |
| 5034 | |
| 5035 | /** |
no test coverage detected