MCPcopy Create free account
hub / github.com/SpartanJ/eepp / create

Method create

src/eepp/graphics/text.cpp:566–578  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

564}
565
566void Text::create( Font* font, const String& text, Color FontColor, Color FontShadowColor,
567 Uint32 characterSize ) {
568 mFontStyleConfig.Font = font;
569 mFontStyleConfig.CharacterSize = characterSize;
570 if ( !mFontStyleConfig.Font->isScalable() ) {
571 mFontStyleConfig.CharacterSize =
572 mFontStyleConfig.Font->getFontHeight( mFontStyleConfig.CharacterSize );
573 }
574 mString = text;
575 setFillColor( FontColor );
576 setShadowColor( FontShadowColor );
577 invalidate();
578}
579
580void Text::checkColorEmojis() {
581 mContainsColorEmoji = false;

Callers 3

findGlyphRectMethod · 0.45
PageMethod · 0.45
pushTextureMethod · 0.45

Calls 2

isScalableMethod · 0.45
getFontHeightMethod · 0.45

Tested by

no test coverage detected