sytone / obsidian-remote

Run Obsidian.md in a browser via a docker container.
MIT License
1.42k stars 138 forks source link

How to add language(e.g. Chinese) support #12

Closed lmingzhi closed 2 years ago

lmingzhi commented 2 years ago

Describe the bug

The characters of non-English look likes square.

To Reproduce

image
aaron-jang commented 2 years ago

Same happens to me.

I solved it.

The problem is that the font is missing. I downloaded the font of the language to be used and added it to the volume as shown below, and it was solved.

Using the Container
  ...
  -v ...
  -v {downloaded font directory}:/usr/share/fonts/truetype/{font name}
  ...
Using Docker Compose
  ...
    volumes:
      - ...
      - {downloaded font directory}:/usr/share/fonts/truetype/{font name}
  ...
sytone commented 2 years ago

Thanks for this, updated the documentation with this information.