case TextShape.AnchorTopBaseline: case TextShape.AnchorTop: y0 += _shape.getMarginTop(); break; case TextShape.AnchorBottom: default: case TextShape.AnchorMiddle: float delta = (float)anchor.getHeight() - textHeight - _shape.getMarginTop() - _shape.getMarginBottom(); y0 += _shape.getMarginTop() + delta/2; break;
height += getMarginTop() + getMarginBottom() + leading;