transform.rotate(90f);
int horizontalPadding = CellStyleUtil.getHorizontalAlignmentPadding(cellStyle, rectangle, contentHeight);
if (horizontalPadding != 0) {
horizontalPadding += gc.getFontMetrics().getLeading();
}
<BUG>int xOffset = rectangle.y - rectangle.x
+ CellStyleUtil.getVerticalAlignmentPadding(cellStyle, rectangle, lineContentWidth);
int yOffset = -contentHeight - rectangle.y - rectangle.x + fontHeight - horizontalPadding + this.spacing;
transform.translate(xOffset, yOffset);</BUG>
firstline = false;

transform.rotate(90f);
int horizontalPadding = CellStyleUtil.getHorizontalAlignmentPadding(cellStyle, rectangle, contentHeight);
if (horizontalPadding != 0) {
horizontalPadding += gc.getFontMetrics().getLeading();
}
int yOffset = -contentHeight
- rectangle.y
- rectangle.x
- horizontalPadding
+ this.spacing
+ (fontHeight * (numberOfNewLines - 1))
+ (this.lineSpacing * (numberOfNewLines - 1));
transform.translate(xOffset, yOffset);
firstline = false;
