Preload Arabic font (Vazitmatn Regular)

This change should improve performance when switching between
the English, and Arabic languages.

Fix #66
This commit is contained in:
0x1eef 2022-12-30 08:45:22 -03:00 committed by Robert
parent 8626dad6d9
commit 56c8bfbbc6

View file

@ -14,6 +14,7 @@ import WebPackage from "lib/WebPackage";
others: [`/${locale}/${surahId}/surah.json`],
fonts: [
["Kanit Regular", "url(/fonts/kanit-regular.ttf)"],
["Vazirmatn Regular", "url(/fonts/vazirmatn-regular.ttf)"],
["Roboto Mono Regular", "url(/fonts/roboto-mono-regular.ttf)"]
],
onprogress: (percent: number) => {