FontD constructor

FontD({
  1. Pointer<FontC>? originalPointer,
  2. int baseSize = 0,
  3. int glyphCount = 0,
  4. int glyphPadding = 0,
  5. TextureD? texture,
  6. List<RectangleD>? recs,
  7. List<GlyphInfoD>? glyphs,
})

Implementation

FontD({
  super.originalPointer,
  int baseSize = 0,
  int glyphCount = 0,
  int glyphPadding = 0,
  TextureD? texture,
  List<RectangleD>? recs,
  List<GlyphInfoD>? glyphs,
}) :
  _baseSize = baseSize,
  _glyphCount = glyphCount,
  _glyphPadding = glyphPadding,
  _texture = texture ?? .new()
{
  _recs = .new(recs ?? [], originalPointer?.ref.recs);
  _glyphs = .new(glyphs ?? [], originalPointer?.ref.glyphs);
}