| 697 | namespace |
| 698 | { |
| 699 | void char_render(U8 c, U32 font_index, const basic_rect<F32>& bounds, |
| 700 | const basic_rect<F32>& clip, iColor_tag color) |
| 701 | { |
| 702 | font_data& fd = active_fonts[font_index]; |
| 703 | U32 char_index = fd.char_index[c]; |
| 704 | |
| 705 | if (char_index >= fd.index_max) |
| 706 | { |
| 707 | return; |
| 708 | } |
| 709 | |
| 710 | basic_rect<F32> dst = fd.bounds[char_index]; |
| 711 | dst.scale(bounds.w, bounds.h); |
| 712 | dst.x += bounds.x; |
| 713 | dst.y += bounds.y; |
| 714 | dst.w *= fd.dstfrac[char_index].x; |
| 715 | dst.h *= fd.dstfrac[char_index].y; |
| 716 | |
| 717 | tex_render(fd.tex_bounds[char_index], dst, clip, color); |
| 718 | } |
| 719 | |
| 720 | RwRaster* set_tex_raster(RwRaster* raster) |
| 721 | { |