QuranFontsService class

خدمة تحميل كسول (lazy) وتسجيل خطوط QCF4 المضغوطة (tajweed).

الخطوط مخزّنة كملفات .ttf.gz في assets. عند الحاجة يتم فك ضغطها وتسجيلها عبر loadFontFromList. تُحفظ النسخ المفكوكة على القرص (على المنصات غير الويب) لتسريع التشغيلات اللاحقة.

التحميل الكسول: تُحمّل فقط الصفحات القريبة من الصفحة الحالية، ثم تُكمَل بقية الصفحات في الخلفية تدريجيًا.

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

allLoaded → bool
هل تم تحميل جميع الصفحات؟
no setter
loadedCount → int
عدد الصفحات المحمّلة حتى الآن.
no setter

Static Methods

clearCache() → Future<void>
حذف كاش الخطوط من القرص.
ensurePagesLoaded(int centerPage, {int radius = 10}) → Future<void>
تحميل الصفحات القريبة من centerPage (1-based) بنصف قطر radius.
ensureTransparentFont(int page) → Future<bool>
يحمّل المتغير الشفاف لصفحة واحدة عند الطلب (وضع التسميع).
getDarkFontFamily(int pageIndex) → String
اسم عائلة الخط الداكن للصفحة المحددة (page1d .. page604d).
getFontFamily(int pageIndex) → String
اسم عائلة الخط للصفحة المحددة (page1 .. page604).
getNoTajweedDarkFontFamily(int pageIndex) → String
اسم عائلة الخط بدون تجويد داكن (page1nd .. page604nd).
getNoTajweedFontFamily(int pageIndex) → String
اسم عائلة الخط بدون تجويد فاتح (page1n .. page604n).
getRedFontFamily(int pageIndex) → String
اسم عائلة الخط الأحمر للخلاف (page1nr .. page604nr).
getTransparentFontFamily(int pageIndex) → String
اسم عائلة الخط الشفاف للتسميع (page1t .. page604t) — كل ألوان CPAL ألفا 0: الكلمات تختفي بصريًا مع بقاء المقاييس والمواضع كما هي.
isPageReady(int page) → bool
هل الصفحة المحددة جاهزة للعرض؟ (1-based)
isTransparentPageReady(int page) → bool
هل المتغير الشفاف للصفحة (1-based) جاهز؟
loadRemainingInBackground({required int startNearPage, required RxDouble progress, required RxBool ready}) → Future<void>
تحميل بقية الصفحات في الخلفية بترتيب يبدأ من startNearPage.