fontName property
String
fontName
Complete font name. Used to index CharacterMetrics
.
Implementation
String get fontName {
final postfix = '${fontWeight == FontWeight.bold ? 'Bold' : ''}'
'${fontShape == FontStyle.italic ? "Italic" : ""}';
return '$fontFamily-${postfix.isEmpty ? "Regular" : postfix}';
}