| 29 | #include <iterator> |
| 30 | |
| 31 | Point Text::Draw(Bitmap& dest, int x, int y, const Font& font, const Bitmap& system, int color, char32_t glyph, bool is_exfont) { |
| 32 | if (is_exfont) { |
| 33 | if (!font.IsStyleApplied()) { |
| 34 | return Font::exfont->Render(dest, x, y, system, color, glyph); |
| 35 | } else { |
| 36 | auto style = font.GetCurrentStyle(); |
| 37 | auto style_guard = Font::exfont->ApplyStyle(style); |
| 38 | return Font::exfont->Render(dest, x, y, system, color, glyph); |
| 39 | } |
| 40 | } else { |
| 41 | return font.Render(dest, x, y, system, color, glyph); |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | Point Text::Draw(Bitmap& dest, int x, int y, const Font& font, Color color, char32_t glyph, bool is_exfont) { |
| 46 | if (is_exfont) { |
nothing calls this directly
no test coverage detected