Skip to content

Commit

Permalink
Replace mada-regular.ttf
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1eef committed Aug 30, 2024
1 parent 07788b4 commit 22fb6b8
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions share/al-quran.reflectslight.io/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

** vNEXT

**** Remove ~mada-regular.ttf~
With this change, the Arabic font is now based on
standard web fonts rather than a custom font obtained
from fonts.google.com

**** Add ~src/js/main/vendor.ts~
The new vendor entry point bundles preact, and other
third party dependencies in a single file. This change
Expand Down
2 changes: 1 addition & 1 deletion src/css/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ html {
direction: ltr;
}
.rtl {
font-family: "Mada Regular";
font-family: 'Arial', 'Tahoma', sans-serif;
direction: rtl;
}
.invisible, .hidden {
Expand Down
Binary file removed src/fonts/mada-regular.ttf
Binary file not shown.
1 change: 0 additions & 1 deletion src/js/loaders/SurahIndexLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import { formatNumber } from "~/lib/t";
item.script(`/js/main/vendor.js?v=${rev}`, { id: 0 }),
item.script(`/js/main/surah-index.js?v=${rev}`, { id: 1 }),
item.font("Kanit Regular", "url(/fonts/kanit-regular.ttf)"),
item.font("Mada Regular", "url(/fonts/mada-regular.ttf"),
item.progress((percent: number) => {
progressBar.value = percent;
progressNumber.innerText = formatNumber(
Expand Down
1 change: 0 additions & 1 deletion src/js/loaders/SurahStreamLoader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import { formatNumber } from "~/lib/t";
item.script(`/js/main/vendor.js?v=${rev}`, { id: 0 }),
item.script(`/js/main/surah-stream.js?v=${rev}`, { id: 1 }),
item.font("Kanit Regular", "url(/fonts/kanit-regular.ttf)"),
item.font("Mada Regular", "url(/fonts/mada-regular.ttf"),
/* eslint-disable */
item.json(`/json/${doc.lang}/${surahId}/info.json?v=${rev}`, { className: "json surahinfo" }),
item.json(`/json/${doc.lang}/${surahId}/surah.json?v=${rev}`, { className: "json surah" }),
Expand Down

0 comments on commit 22fb6b8

Please sign in to comment.