haydenull/logseq-plugin-excalidraw

Custom Code font will impact the editor and menu

Anddd7 opened this issue · 1 comments

Anddd7 commented

Search first

  • I searched and no similar issues were found

What Happened?

The Code Font will overwrite the default font of the editor and menu bar.

I guess the Code: "Assistant" is used as the default font, the rewriteFont replace the font file but keep the same family name.

Reproduce the Bug

  1. Add custom font for Code Font
  2. Restart logseq
  3. Open the excalidraw file

Screenshots

image

Environment Information

No response

Additional Context

No response

Are you willing to submit a PR? If you know how to fix the bug.

  • I'm willing to submit a PR (Thank you!)
Anddd7 commented

I'm a fan of logseq and excalidraw, thanks for your plugin. 😄

I was raised an issue in excalidraw to add a new font, excalidraw/excalidraw#5245. Those 3 font are hard coded in excalidraw, seems no way to add a new font without affecting the original one in the case of using excalidraw package.