FontMetrics constructor

FontMetrics(
  1. double ascent,
  2. double descent,
  3. int linegap,
  4. double height,
  5. double superscriptfactor,
  6. double subscriptfactor,
)

Initialize the font Metrics class with the parameters.

Implementation

FontMetrics(
  double ascent,
  double descent,
  int linegap,
  double height,
  double superscriptfactor,
  double subscriptfactor,
) {
  _ascent = ascent;
  _descent = descent;
  _lineGap = linegap;
  _height = height;
  _superscriptSizeFactor = superscriptfactor;
  _subScriptSizeFactor = subscriptfactor;
}