resolvePaddingByLineHeight method
Calculate based on the current value to return the padding at the last of the line since pdf package rich text, on param of lineSpacing doesn't have effect at the top or botton of the line
Implementation
double resolvePaddingByLineHeight() {
if (this <= 0) return 0;
if (this == 12.5) return 6.5;
if (this == 6.5) return 3.5;
if (this == 23.5) return 12.5;
if (this == 1.0) return this;
return 0;
}