void Text::configure(ds::ui::Text& s) const { s.setConfigName(mCfgName); s.setFont(mFont, mSize); s.setColorA(mColor); s.setLeading(mLeading); s.setAlignment(mAlignment); }
void Text::configure(ds::ui::Text& s) const { s.setConfigName(mCfgName); s.setFont(mFont, mSize); s.setColorA(mColor); ds::ui::MultilineText* mt = dynamic_cast<ds::ui::MultilineText*>(&s); if (mt) { if (mLeading >= 0.0f) mt->setLeading(mLeading); mt->setAlignment(mAlignment); } }