MCPcopy Create free account
hub / github.com/EasyRPG/Player / Render

Method Render

src/font.cpp:729–743  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

727}
728
729Point 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
745Point 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) {

Callers 4

DrawMethod · 0.80
DrawGlyphMethod · 0.80
font.cppFile · 0.80
BM_RenderFunction · 0.80

Calls 4

widthMethod · 0.80
heightMethod · 0.80
MaskedBlitMethod · 0.80
RectClass · 0.70

Tested by

no test coverage detected