فونت: آوردن فونت اصلی Pinar (۵ وزن) به‌جای جانشین Vazirmatn

فایل‌های اصلی Pinar از شاخه feature/frontend-updates گرفته شد (fatemeh sane آن‌ها را
سلف‌هاست کرده بود) — همان فونتی که پیش‌تر CDN از کار افتاده‌اش را سرو می‌کرد:
- ۵ وزن (Light 300، Regular 400، Bold 700، ExtraBold 800، Black 900) در
  frontend/public/fonts/pinar به‌صورت woff2 + ttf
- index.css: Pinar فونت اصلی و Vazirmatn جایگزین پشتیبان
- tailwind: کلاس pinar دوباره Pinar را اول می‌گذارد
This commit is contained in:
MMD
2026-09-12 10:25:49 +03:30
parent 5ae5421c5c
commit f2e5a9e58b
12 changed files with 40 additions and 6 deletions
+38 -3
View File
@@ -7,8 +7,43 @@
/* END TAILWIND IMPORTS — ALL OTHER CSS MUST GO BELOW THIS LINE */
/* فونت Vazirmatn سلف‌هاست شده (public/fonts) — قبلاً از fontcdn.ir (از کار افتاده) و
گوگل‌فونت (مسدود در ایران) دانلود می‌شد که هر دو عملاً در دسترس نبودند */
/* فونت سایت سلف‌هاست است (public/fonts) — هیچ وابستگی خارجی وجود ندارد.
Pinar فونت اصلی است (۵ وزن) و Vazirmatn به‌عنوان جایگزین پشتیبان می‌ماند. */
@font-face {
font-family: 'Pinar';
src: url('/fonts/pinar/Pinar-Light.woff2') format('woff2'),
url('/fonts/pinar/Pinar-Light.ttf') format('truetype');
font-weight: 300;
font-display: swap;
}
@font-face {
font-family: 'Pinar';
src: url('/fonts/pinar/Pinar-Regular.woff2') format('woff2'),
url('/fonts/pinar/Pinar-Regular.ttf') format('truetype');
font-weight: 400;
font-display: swap;
}
@font-face {
font-family: 'Pinar';
src: url('/fonts/pinar/Pinar-Bold.woff2') format('woff2'),
url('/fonts/pinar/Pinar-Bold.ttf') format('truetype');
font-weight: 700;
font-display: swap;
}
@font-face {
font-family: 'Pinar';
src: url('/fonts/pinar/Pinar-ExtraBold.woff2') format('woff2'),
url('/fonts/pinar/Pinar-ExtraBold.ttf') format('truetype');
font-weight: 800;
font-display: swap;
}
@font-face {
font-family: 'Pinar';
src: url('/fonts/pinar/Pinar-Black.woff2') format('woff2'),
url('/fonts/pinar/Pinar-Black.ttf') format('truetype');
font-weight: 900;
font-display: swap;
}
@font-face {
font-family: 'Vazirmatn';
src: url('/fonts/Vazirmatn-Light.woff2') format('woff2');
@@ -33,7 +68,7 @@ html {
body {
background-color: #27221c;
color: #f5f3ef;
font-family: 'Vazirmatn', Tahoma, sans-serif;
font-family: 'Pinar', 'Vazirmatn', Tahoma, sans-serif;
-webkit-font-smoothing: antialiased;
}
::selection {