Replace 'Amiri Quran Regular' with 'Amiri Regular'
This commit is contained in:
parent
111ae08175
commit
69f8b0511a
6 changed files with 9 additions and 4 deletions
|
@ -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
|
||||||
|
|
|
@ -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
BIN
src/fonts/amiri-regular.ttf
Normal file
Binary file not shown.
|
@ -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}
|
||||||
|
|
|
@ -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)")];
|
||||||
|
|
Loading…
Reference in a new issue