FontD constructor
FontD({
- Pointer<
FontC> ? originalPointer, - int baseSize = 0,
- int glyphCount = 0,
- int glyphPadding = 0,
- TextureD? texture,
- List<
RectangleD> ? recs, - 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);
}