getFontPath method
يُرجع اسم عائلة الخط للصفحة المحددة (page1 .. page604). في الوضع الداكن مع التجويد يُرجع النسخة الداكنة (page1d .. page604d).
Implementation
String getFontPath(int pageIndex, {bool isDark = false}) {
final withTajweed = state.isTajweedEnabled.value;
if (withTajweed) {
return isDark
? QuranFontsService.getDarkFontFamily(pageIndex)
: QuranFontsService.getFontFamily(pageIndex);
} else {
return isDark
? QuranFontsService.getNoTajweedDarkFontFamily(pageIndex)
: QuranFontsService.getNoTajweedFontFamily(pageIndex);
}
}