learnosm icon indicating copy to clipboard operation
learnosm copied to clipboard

Suggesting Sahel font for Farsi

Open iriman opened this issue 4 years ago • 1 comments

The current font of website is very good for Latin script, but not very well readable for Farsi. Also it has too sharp angles. ّI would suggest to use Sahel font which is free and is specially designed for Farsi and gives much better feel and reads easily.

Also it could be configured so that doesn't load on non-Farsi pages at all.

Sahel font:

image

Default font: image

iriman avatar May 31 '20 11:05 iriman

@michael63-osm What's your opinion on this more specific issue?


I guess the easiest way to implement it is using publisher-provided css on the default layout (without the need to self-hosting font files):

{% if page.lang == "fa" %}<link href="https://cdn.jsdelivr.net/gh/rastikerdar/[email protected]/dist/font-face.css" rel="stylesheet" type="text/css" />{% endif %}

and applying some style rules via style-rtl.css:

/* font configuration for Farsi */
[lang="fa"] body,
[lang="fa"] .doc ol > li:before,
[lang="fa"] .doc ul > li:before,
[lang="fa"] .doc  ul li,.doc ol li, .doc p,
[lang="fa"] blockquote p,
[lang="fa"] .searchbox input,
[lang="fa"] .ui-menu-item {
  font-family: Sahel, sans-serif !important;
  font-size: 1em;
}

iriman avatar Jun 20 '20 14:06 iriman