FontsExtension extension
مُعرّف جيل لتحميل الخطوط يُستخدم لإلغاء دفعات قديمة عند تغيّر الصفحة بسرعة Generation token to cancel outdated preloading batches when page changes quickly Extension to handle font-related operations for the QuranCtrl class.
- on
Properties
- isPhones → bool
-
Available on QuranCtrl, provided by the FontsExtension extension
no setter
Methods
-
deleteFonts(
) → Future< void> -
Available on QuranCtrl, provided by the FontsExtension extension
Deletes the font at the specified index. -
downloadAllFontsZipFile(
int fontIndex) → Future< void> -
Available on QuranCtrl, provided by the FontsExtension extension
Downloads a zip file containing all fonts for the specified font index. -
getFontFullPath(
Directory fontsDir, int pageIndex) → String -
Available on QuranCtrl, provided by the FontsExtension extension
-
getFontPath(
int pageIndex) → String -
Available on QuranCtrl, provided by the FontsExtension extension
-
getWebFontUrl(
int pageIndex) → String -
Available on QuranCtrl, provided by the FontsExtension extension
URL مباشر لملف الخط على الويب (GitHub Raw) ملاحظة: بعض المستودعات/الفروع قد تختلف في المسار؛ جهّز بدائل متعددة وتحقّق بالتسلسل -
idlePreloadFontsAround(
int centerIndex) → void -
Available on QuranCtrl, provided by the FontsExtension extension
تهيئة خاملة لخطوط صفحات مجاورة حولcenterIndex -
loadFont(
int pageIndex, {bool isFontsLocal = false}) → Future< void> -
Available on QuranCtrl, provided by the FontsExtension extension
Loads the font for the specified page index. -
loadFontFromZip(
[int? pageIndex]) → Future< void> -
Available on QuranCtrl, provided by the FontsExtension extension
Loads a font from a ZIP file for the specified page index. -
loadPersistedFontsBulk(
{List< int> ? pages, int batchSize = 24}) → Future<void> -
Available on QuranCtrl, provided by the FontsExtension extension
يقوم بتحميل وتسجيل جميع الصفحات المحفوظة دفعة واحدة (Bulk)