toD method

FontD toD([
  1. Pointer<FontC>? ptr
])

Implementation

FontD toD([Pointer<FontC>? ptr]) => .new(
  originalPointer: ptr,
  baseSize: baseSize,
  glyphCount: glyphCount,
  glyphPadding: glyphPadding,
  texture: texture.toD(),
  recs: .generate(glyphCount, (i) => recs[i].toD()),
  glyphs: .generate(glyphCount, (i) => glyphs[i].toD()),
);