private static int getVerticalOffset(int lineHeight) {
    int height = getHeight(lineHeight);
    return (lineHeight - 2 * height - 2 * getAAGap()) / 2;
  }
private static int getVerticalOffset(int lineHeight)