| 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 | |
| 80 | namespace ax |
no test coverage detected