(CharSequence str)
| 167 | } |
| 168 | // Expose methods from font that updates scale as needed |
| 169 | public TextBounds getBounds(CharSequence str) { |
| 170 | updateScale(); //must update scale before measuring text |
| 171 | return getBounds(str, 0, str.length()); |
| 172 | } |
| 173 | public TextBounds getBounds(CharSequence str, int start, int end) { |
| 174 | if (font == null) { |
| 175 | return new TextBounds(0f, 0f); |
no test coverage detected