kurdishTextStyle function
Future<TextStyle>
kurdishTextStyle({
- KurdishDialect dialect = KurdishDialect.sorani,
- double fontSize = 14,
- PdfColor color = PdfColors.black,
- FontWeight fontWeight = pw.FontWeight.normal,
Implementation
Future<pw.TextStyle> kurdishTextStyle({
KurdishDialect dialect = KurdishDialect.sorani,
double fontSize = 14,
PdfColor color = PdfColors.black,
pw.FontWeight fontWeight = pw.FontWeight.normal,
}) async {
final font = await loadKurdishFont(dialect);
return pw.TextStyle(
font: font,
fontSize: fontSize,
color: color,
fontWeight: fontWeight,
);
}