sytone / obsidian-remote

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

OS font does not support emoji #43

Closed layanto closed 1 year ago

layanto commented 1 year ago

Describe the bug Emoji icon does not appear in Edit mode. I think this is because the OS font does not support emoji icons.

To Reproduce Steps to reproduce the behavior:

  1. Install Emoji Toolbar plugin
  2. Add emoji icon to a note
  3. Switch between Edit and Preview modes. Note emoji icon appears in Preview mode but not Edit mode.

Expected behavior Emoji icon showing in both Edit and Preview mode.

Screenshots Preview mode shows emoji (because of Emoji Toolbar plugin) image Edit mode does not show emoji image

Desktop (please complete the following information):

Additional context See - https://forum.obsidian.md/t/emojis-look-different-in-editor-than-in-preview/13646/8

layanto commented 1 year ago

Worked around this by mounting docker volume (containing font files) to /usr/share/fonts/truetype/customfonts/