Skip to content

Add Vazirmatn font for Farsi #3463

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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
23 changes: 23 additions & 0 deletions assets/css/custom.scss
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,14 @@ blockquote {
-webkit-appearance: none;
}

@font-face {
font-family: 'Vazirmatn';
src: url('/assets/fonts/Vazirmatn-Variable.woff2') format('woff2-variations');
font-weight: 100 900;
font-style: normal;
font-display: swap;
}

*:lang(fa) {
Copy link
Preview

Copilot AI Jun 27, 2025

Choose a reason for hiding this comment

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

Using a universal selector here (*) can degrade rendering performance and may unintentionally affect non-text elements. Consider scoping to html:lang(fa) or body:lang(fa) instead.

Copilot uses AI. Check for mistakes.

.article-body,
.lead,
Expand All @@ -259,4 +267,19 @@ blockquote {
h3 {
direction: rtl; /* Right to Left */
}

p,
a,
li,
span,
label,
h1,
h2,
h3,
h4,
h5,
h6,
footer {
font-family: 'Vazirmatn', sans-serif;
}
}
Binary file added assets/fonts/Vazirmatn-Variable.woff2
Binary file not shown.
Loading