setC method

  1. @override
FontD setC(
  1. FontC o
)
override

Copies the fields of the native struct o into this instance.

Implementation

@override
FontD setC(FontC o) {
  onOriginalPointer((p) {
    p.ref.recs = o.recs;
    p.ref.glyphs = o.glyphs;
  });
  baseSize = o.baseSize;
  glyphCount = o.glyphCount;
  glyphPadding = o.glyphPadding;
  texture.setC(o.texture);
  recs = .generate(o.glyphCount, (i) => o.recs[i].toD());
  glyphs = .generate(o.glyphCount, (i) => o.glyphs[i].toD());
  return this;
}