laurent22 / joplin

Joplin - the privacy-focused note taking app with sync capabilities for Windows, macOS, Linux, Android and iOS.
https://joplinapp.org
Other
45.52k stars 4.95k forks source link

Persian/Arabic default font sucks #8304

Closed mahdimahdieh closed 1 year ago

mahdimahdieh commented 1 year ago

Environment

Joplin version: Latest Platform: Windows OS specifics: 11

Steps to reproduce

Just type something in the subject or title or notebook's title and this ugly font will appear:

image

image

Describe what you expected to happen

change defualt arabic/persian font to something like https://rastikerdar.github.io/vazirmatn/en or https://aminabedi68.github.io/Estedad/

Logfile

rio-codes commented 1 year ago

Do you like any of these? https://fonts.google.com/?subset=arabic&noto.script=Arab
Google Fonts has some nice choices and might be easier to integrate.

mahdimahdieh commented 1 year ago

Thanks for your response. Vazirmatan that I mentioned above is also available on Google Fonts: https://fonts.google.com/specimen/Vazirmatn?subset=arabic&noto.script=Arab&query=vazir

rio-codes commented 1 year ago

You could change the css yourself, I don't see an elegant way to do it in the existing code. Click Tools -> Options -> Appearance -> Show Advanced Settings and select "Custom stylesheet for Joplin-wide app styles".

In the editor that comes up, copy paste this in:

:root {
    --font-face: "Vazirmatan"
}
* {
  font-family: var(--font-face) !important;
}

As long as you have the font installed it should change the non-markdown text to that font.

mahdimahdieh commented 1 year ago

Thanks! That's worked!