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

Method calculateWidth

core/platform/linux/Device-linux.cpp:69–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67 }
68
69 void calculateWidth()
70 {
71 lineWidth = 0;
72 if (glyphs.empty() == false)
73 {
74 LineBreakGlyph& glyph = glyphs.at(glyphs.size() - 1);
75 lineWidth = glyph.paintPosition + std::max(glyph.glyphWidth, glyph.horizAdvance - glyph.bearingX);
76 }
77 }
78};
79
80namespace ax

Callers 1

divideStringMethod · 0.80

Calls 4

maxFunction · 0.50
emptyMethod · 0.45
atMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected