Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(font): add sahel font #132

Merged
merged 5 commits into from
Apr 19, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 51 additions & 4 deletions package/font/font.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Vazirmatn Variable (None Latin) */
/* Vazirmatn Variable (Without-Latin) */
@font-face {
font-family: 'vazirmatn-vf';
font-weight: 100 900;
Expand All @@ -8,7 +8,7 @@
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}

/* Vazirmatn (None Latin, None VF Fallback) */
/* Vazirmatn (Without-Latin, None VF Fallback) */
@font-face {
font-family: 'vazirmatn';
font-weight: 100;
Expand Down Expand Up @@ -73,7 +73,7 @@
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}

/* Vazirmatn Round-Dots Variable (None Latin) */
/* Vazirmatn Round-Dots Variable (Without-Latin) */
@font-face {
font-family: 'vazirmatn-rd-vf';
font-weight: 100 900;
Expand All @@ -83,7 +83,7 @@
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}

/* Vazirmatn Round-Dots (None Latin, None VF Fallback) */
/* Vazirmatn Round-Dots (Without-Latin, None VF Fallback) */
@font-face {
font-family: 'vazirmatn-rd';
font-weight: 100;
Expand Down Expand Up @@ -148,6 +148,52 @@
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}

/* Sahel Variable (Without-Latin) */
@font-face {
font-family: 'sahel-vf';
font-weight: 400 900;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

300

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

این همچنان ۴۰۰ هستش که!
درست کن مرج کنم دیگه

src: url('sahel/sahel[wght].woff2') format('woff2 supports variations'), url('sahel/sahel[wght].woff2') format('woff2-variations');
font-display: block;
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}

/* Sahel (Without-Latin, None VF Fallback) */
@font-face {
font-family: 'sahel';
font-weight: 300;
src: url('sahel/sahel-300.woff') format('woff');
font-display: block;
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}
@font-face {
font-family: 'sahel';
font-weight: 400;
alimd marked this conversation as resolved.
Show resolved Hide resolved
src: url('sahel/sahel-400.woff') format('woff');
font-display: block;
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}
@font-face {
font-family: 'sahel';
font-weight: 600;
src: url('sahel/sahel-600.woff') format('woff');
font-display: block;
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}
@font-face {
font-family: 'sahel';
font-weight: 700;
src: url('sahel/sahel-700.woff') format('woff');
font-display: block;
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}
@font-face {
font-family: 'sahel';
font-weight: 900;
src: url('sahel/sahel-900.woff') format('woff');
font-display: block;
unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF, U+1EE00-1EEFF;
}

/* Global page typography */
body {
text-rendering: optimizeLegibility;
Expand Down Expand Up @@ -177,6 +223,7 @@ body {
}

:root {
--font-sahel: 'sahel-vf', 'sahel';
--font-vazirmatn: 'vazirmatn-vf', 'vazirmatn';
--font-vazirmatn-rd: 'vazirmatn-rd-vf', 'vazirmatn-rd';
--font-system: system-ui,
Expand Down
6 changes: 6 additions & 0 deletions package/font/sahel/note.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
mv Sahel-Black-WOL.woff sahel-900.woff
mv Sahel-Bold-WOL.woff sahel-700.woff
mv Sahel-Semi-bold-WOL.woff sahel-600.woff
mv Sahel-WOL.woff sahel-400.woff
mv Sahel-Light-WOL.woff sahel-300.woff

Binary file added package/font/sahel/sahel-300.woff
Binary file not shown.
Binary file added package/font/sahel/sahel-400.woff
Binary file not shown.
Binary file added package/font/sahel/sahel-600.woff
Binary file not shown.
Binary file added package/font/sahel/sahel-700.woff
Binary file not shown.
Binary file added package/font/sahel/sahel-900.woff
Binary file not shown.
Binary file added package/font/sahel/sahel[wght].woff2
Binary file not shown.