Replace 'Amiri Quran Regular' with 'Amiri Regular'
Some checks are pending
The Quran / ci (push) Waiting to run

This commit is contained in:
0x1eef 2024-10-01 17:53:43 -03:00
parent 111ae08175
commit 69f8b0511a
6 changed files with 9 additions and 4 deletions

View file

@ -2,6 +2,11 @@
* vNEXT * vNEXT
** Fix the render of Amiri font on iOS
On modern versions of iOS the "Amiri Quran Regular" font rendered
as invisible text. This change reverts to the "Amiri Regular" font
instead, which appears to render without any issues
** Download fonts based on language direction ** Download fonts based on language direction
RTL and LTR languages use a different set of fonts, and before this RTL and LTR languages use a different set of fonts, and before this
change we would download all fonts regardless of whether the font change we would download all fonts regardless of whether the font

View file

@ -44,7 +44,7 @@ html {
} }
.font-amiri { .font-amiri {
font-family: "Amiri Quran Regular", "Scheherazade", "Arial", sans-serif; font-family: "Amiri Regular", "Scheherazade", "Arial", sans-serif;
} }
} }
} }

Binary file not shown.

BIN
src/fonts/amiri-regular.ttf Normal file

Binary file not shown.

View file

@ -38,7 +38,7 @@ export function Stream({
<li <li
key={ayah.id} key={ayah.id}
className={classNames("ayah fade", { className={classNames("ayah fade", {
"mb-12": isArabic, "mb-8": isArabic,
"mb-5": !isArabic, "mb-5": !isArabic,
})} })}
> >
@ -63,7 +63,7 @@ export function Stream({
</span> </span>
<p <p
className={classNames("m-0 color-accent", { className={classNames("m-0 color-accent", {
"text-2xl mt-2": isArabic, "text-2xl mt-5": isArabic,
})} })}
> >
{ayah.body} {ayah.body}

View file

@ -23,7 +23,7 @@ import { formatNumber } from "~/lib/t";
return [ return [
item.font("Cairo Regular", "url(/fonts/cairo-regular.ttf)"), item.font("Cairo Regular", "url(/fonts/cairo-regular.ttf)"),
item.font("Cairo Bold", "url(/fonts/cairo-bold.ttf)"), item.font("Cairo Bold", "url(/fonts/cairo-bold.ttf)"),
item.font("Amiri Quran Regular", "url(/fonts/amiri-quran-regular.ttf)"), item.font("Amiri Regular", "url(/fonts/amiri-regular.ttf)"),
]; ];
} else { } else {
return [item.font("Kanit Regular", "url(/fonts/kanit-regular.ttf)")]; return [item.font("Kanit Regular", "url(/fonts/kanit-regular.ttf)")];