| 615 | } |
| 616 | |
| 617 | basic_rect<F32> xfont::bounds(char c) const |
| 618 | { |
| 619 | font_data& fd = active_fonts[id]; |
| 620 | U32 char_index = fd.char_index[c]; |
| 621 | |
| 622 | if (fd.char_index[c] == 0xFF) |
| 623 | { |
| 624 | // non-matching: scheduling |
| 625 | return basic_rect<F32>::m_Null; |
| 626 | } |
| 627 | |
| 628 | basic_rect<F32> r = fd.bounds[char_index]; |
| 629 | r.scale(width, height); |
| 630 | return r; |
| 631 | } |
| 632 | |
| 633 | basic_rect<F32> xfont::bounds(const char* text) const |
| 634 | { |
no test coverage detected