drawText method

  1. @override
void drawText(
  1. PdfTextRun run
)
override

Implementation

@override
void drawText(PdfTextRun run) {
  final glyphs = run.glyphs;
  if (!slugGlyphs ||
      run.invisible ||
      !stripsActive ||
      delegateText ||
      glyphs == null ||
      !run.fill ||
      run.strokeColor != null ||
      run.gradient != null) {
    super.drawText(run);
    return;
  }
  flushPending();
  if (!_addSlugRun(glyphs, run, stripArgbColor(run.color, 1))) {
    slugFallbackOutlineRuns++;
    slugFallbackOrdinals.add(flushPointCount - 1);
    super.drawText(run);
    return;
  }
  _flushSlug(flushPointCount - 1);
}