Making WordPress.org

Opened 3 months ago

Last modified 2 months ago

#3933 new defect

Optimize fonts for Persian language

Reported by: parsmizban Owned by:
Milestone: Priority: normal
Component: General Keywords:


We need some font optimization for Persian language on O2 theme and other wp.org themes,
How we can coordinate it?

I think we can add a font family for every language (if need) in CSS files, like this:

html[lang="fa-IR"] body{
    font-family: Tahoma, Arial, Arial, sans-serif;

Although we have a specific web font which we can provide to include it in the theme
if it is possible for meta team to add such things
Waiting for a response
Thank you for any help

Change History (4)

#2 @dd32
2 months ago

Hey @parsmizban,

I think I'd prefer us to simply copy what WordPress itself does, which is defined here:

in short, that would result in:

body.rtl {
     font-family: Tahoma, Arial, sans-serif;
html[lang="he-IL"] body.rtl {
     font-family: Arial, sans-serif;

Would that be enough to make the fonts more legible?
It looks like it'll need to be added to quite a few of the w.org themes, as there isn't any shared stylesheets for everything.

#3 @parsmizban
2 months ago



Yes, It works too, and it will fix that
I think my solution may be is better, Because other RTL languages may be don't like Tahoma, Arial
as their default

html[lang="fa-IR"] body.rtl {
     font-family: Tahoma, Arial, Arial, sans-serif;

is same as :

html[lang="fa-IR"] body {
     font-family: Tahoma, Arial, Arial, sans-serif;

Because Persian language should be in RTL always, But you can check for RTL again too
It's ok

Last edited 2 months ago by parsmizban (previous) (diff)

#4 @parsmizban
2 months ago

I prefer to have this font for Persian, if it is possible, it will be very nice:

Note: See TracTickets for help on using tickets.