PdfContentFont constructor
PdfContentFont({})
Creates the description of a font.
Implementation
PdfContentFont({
this.resourceName,
this.baseFont,
this.subtype,
this.composite = false,
int codeByteLength = 1,
Map<int, String>? toUnicode,
Map<int, String>? differences,
this.winAnsi = true,
this.firstChar = 0,
List<double>? widths,
Map<int, double>? cidWidths,
double? defaultWidth,
this.missingWidth,
}) : codeByteLength = codeByteLength.clamp(1, 2),
toUnicode = toUnicode ?? const <int, String>{},
differences = differences ?? const <int, String>{},
widths = widths ?? const <double>[],
cidWidths = cidWidths ?? const <int, double>{},
defaultWidth = defaultWidth ?? (composite ? 1000 : 500);