Comments (1)
@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;
}
from learnosm.
Related Issues (20)
- A short guide on how set website language
- Display of code examples need improvement HOT 2
- Placeholder of search input box misaligned on mobile screen HOT 2
- 3 first titles of 'Quick access' need translation
- mixed-content HOT 1
- Search function needs improvement
- Add StreetComplete page HOT 6
- Mixed content HOT 1
- Is it safe to assume that smartphone has GPS?
- Start from actionables rather than from theory at mobile page
- Is it useful to mention CDs and USB drives?
- Add Next Section navigation
- Sudden unexplained Spanish(?) HOT 1
- Blank contributing file is confusing HOT 4
- color is not perfect to use HOT 1
- "the default is Bing Aerial Imagery" is not true HOT 1
- Docs not available HOT 3
- Unsecure http link remain in learnosm article
- Japanese translation of the site HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from learnosm.