Get index for the character. @return index into arrays or -1 if not found
(char c)
| 610 | * @return index into arrays or -1 if not found |
| 611 | */ |
| 612 | protected int index(char c) { |
| 613 | if (lazy) { |
| 614 | int index = indexActual(c); |
| 615 | if (index != -1) { |
| 616 | return index; |
| 617 | } |
| 618 | if (font != null && font.canDisplay(c)) { |
| 619 | // create the glyph |
| 620 | addGlyph(c); |
| 621 | // now where did i put that? |
| 622 | return indexActual(c); |
| 623 | |
| 624 | } else { |
| 625 | return -1; |
| 626 | } |
| 627 | |
| 628 | } else { |
| 629 | return indexActual(c); |
| 630 | } |
| 631 | } |
| 632 | |
| 633 | |
| 634 | protected int indexActual(char c) { |
no test coverage detected