SpriteFontRenderer.fromFont constructor
SpriteFontRenderer.fromFont(
- SpriteFont font, {
- double scale = 1.0,
- double letterSpacing = 0.0,
- Color? color,
Implementation
SpriteFontRenderer.fromFont(
this.font, {
this.scale = 1.0,
this.letterSpacing = 0.0,
Color? color,
}) : paint = Paint() {
if (color != null) {
paint.colorFilter = ColorFilter.mode(color, BlendMode.srcIn);
}
}