Adding font for Persian language #783
Labels
No labels
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Plume/Plume#783
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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.
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 :Anyway, thank you for your fonts suggestions!
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-rangewhen declaring Persian font so it only triggers certain characters.This issue have been fixed as far as I can tell.