kurdishTextStyle function

Future<TextStyle> kurdishTextStyle({
  1. KurdishDialect dialect = KurdishDialect.sorani,
  2. double fontSize = 14,
  3. PdfColor color = PdfColors.black,
  4. 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,
  );
}