resolveLineHeight method

double resolveLineHeight()

Calculate based on the the current value to return the more similar line height as should see on a PDF (and like Docx, libreoffice formatting too)

Implementation

double resolveLineHeight() {
  if (this <= 0) return 0;
  if (this == 2.0) return 23.5;
  if (this == 1.5) return 12.5;
  if (this == 1.15) return 6.5;
  return this;
}