| 727 | } |
| 728 | |
| 729 | Point Font::Render(Bitmap& dest, int const x, int const y, const Bitmap& sys, int color, char32_t glyph) const { |
| 730 | if (EP_UNLIKELY(Utils::IsControlCharacter(glyph))) { |
| 731 | return {}; |
| 732 | } |
| 733 | |
| 734 | auto gret = vRender(glyph); |
| 735 | |
| 736 | if (EP_UNLIKELY(!RenderImpl(dest, x, y, sys, color, gret))) { |
| 737 | return {}; |
| 738 | } |
| 739 | |
| 740 | gret.advance.x += current_style.letter_spacing; |
| 741 | |
| 742 | return gret.advance; |
| 743 | } |
| 744 | |
| 745 | Point Font::Render(Bitmap& dest, int const x, int const y, const Bitmap& sys, int color, const Font::ShapeRet& shape) const { |
| 746 | if (shape.not_found) { |