Font constructor

Font({
  1. StructPointer<Font>? op,
  2. int baseSize = 0,
  3. int glyphCount = 0,
  4. int glyphPadding = 0,
  5. Texture? texture,
  6. List<Rectangle>? recs,
  7. List<GlyphInfo>? glyphs,
})

Implementation

Font({
  super.op,
  int baseSize = 0,
  int glyphCount = 0,
  int glyphPadding = 0,
  Texture? texture,
  List<Rectangle>? recs,
  List<GlyphInfo>? glyphs,
}) :
  _baseSize = baseSize,
  _glyphCount = glyphCount,
  _glyphPadding = glyphPadding,
  _texture = texture ?? .new()
{
  _recs = field_recs.live(() => op, recs ?? []);
  _glyphs = field_glyphs.live(() => op, glyphs ?? []);
}