baselineOffsetAt method

double baselineOffsetAt(
  1. double fontSize
)

Distance from the top of the line box to the baseline, in pixels.

Implementation

double baselineOffsetAt(double fontSize) {
  return ascender * fontSize / unitsPerEm;
}