diff --git a/source/svgtextelement.cpp b/source/svgtextelement.cpp index 6d35cd8..b6da9ba 100644 --- a/source/svgtextelement.cpp +++ b/source/svgtextelement.cpp @@ -71,7 +71,7 @@ static float calculateBaselineOffset(const SVGTextPositioningElement* element) offset -= font.xHeight() / 2.f; break; case AlignmentBaseline::Central: - offset -= (font.ascent() - font.descent()) / 2.f; + offset -= (font.ascent() + font.descent()) / 2.f; break; case AlignmentBaseline::AfterEdge: case AlignmentBaseline::TextAfterEdge: