PdfFontMetrics constructor

const PdfFontMetrics({
  1. required double left,
  2. required double top,
  3. required double right,
  4. required double bottom,
  5. double? ascent,
  6. double? descent,
  7. double? advanceWidth,
  8. double? leftBearing,
})

Create a PdfFontMetrics object

Implementation

const PdfFontMetrics({
  required this.left,
  required this.top,
  required this.right,
  required this.bottom,
  double? ascent,
  double? descent,
  double? advanceWidth,
  double? leftBearing,
})  : ascent = ascent ?? bottom,
      descent = descent ?? top,
      advanceWidth = advanceWidth ?? right - left,
      leftBearing = leftBearing ?? left;