MCPcopy Create free account
hub / github.com/axmolengine/axmol / getFontSize

Method getFontSize

core/ui/UIRichText.cpp:776–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776float MyXMLVisitor::getFontSize() const
777{
778 for (auto i = _fontElements.rbegin(), iRend = _fontElements.rend(); i != iRend; ++i)
779 {
780 if (i->fontSize != -1)
781 return i->fontSize;
782 }
783 return 12;
784}
785
786std::string MyXMLVisitor::getFace() const
787{

Callers 1

setStringMethod · 0.45

Calls 4

asFloatMethod · 0.80
rbeginMethod · 0.45
rendMethod · 0.45
atMethod · 0.45

Tested by

no test coverage detected