Adding font for Persian language #783

Closed
opened 2020-06-17 22:24:16 +00:00 by DearRude · 3 comments
DearRude commented 2020-06-17 22:24:16 +00:00 (Migrated from github.com)

Unfortunately, when you write in Persian language, the default system font will be displayed. Despite English, it's very unreadable with Persian.

I suggest using Shabnam Font for Persian interface and Vazir Font for blogposts.
Vazir Font is a open-source font which is used in default in Mastodon, OpenStreetMap and Telegram for Persian/Arabic. It is also widely used in Persian blogging websites such as Virgool.

Unfortunately, when you write in Persian language, the default system font will be displayed. Despite English, it's very unreadable with Persian. I suggest using [Shabnam Font](https://github.com/rastikerdar/shabnam-font) for Persian interface and [Vazir Font](https://github.com/rastikerdar/vazir-font) for blogposts. Vazir Font is a open-source font which is used in default in Mastodon, OpenStreetMap and Telegram for Persian/Arabic. It is also widely used in Persian blogging websites such as [Virgool](https://virgool.io/).
elegaanz commented 2020-06-18 09:55:43 +00:00 (Migrated from github.com)

I don't know exactly how we can load a different font depending on the language… Maybe we could add a lang="xx" to <html>, and then do something like :

html[lang="fa"] {
    font-family: "Shabnam";
}

Anyway, thank you for your fonts suggestions!

I don't know exactly how we can load a different font depending on the language… Maybe we could add a `lang="xx"` to `<html>`, and then do something like : ```css html[lang="fa"] { font-family: "Shabnam"; } ``` Anyway, thank you for your fonts suggestions!
DearRude commented 2020-06-18 15:16:41 +00:00 (Migrated from github.com)

I don't think if we can use a lang keyword for CSS fonts or not. However, based on what I saw on other websites, they use Vazir WOL (without latin) in priority - so text triggers Vazir if Persian or iterates to the next font if not.

I believe there is another way to specify a unicode-range when declaring Persian font so it only triggers certain characters.

I don't think if we can use a lang keyword for CSS fonts or not. However, based on what I saw on other websites, they use [Vazir WOL](https://github.com/rastikerdar/vazir-font/tree/master/dist/Farsi-Digits-Without-Latin) (without latin) in priority - so text triggers Vazir if Persian or iterates to the next font if not. I believe there is another way to specify a `unicode-range` when declaring Persian font so it only triggers certain characters.
Owner

This issue have been fixed as far as I can tell.

This issue have been fixed as far as I can tell.
kiwii closed this issue 2020-07-05 16:31:26 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Plume/Plume#783
No description provided.