haydenull / logseq-plugin-excalidraw

MIT License
75 stars 1 forks source link

Custom Code font will impact the editor and menu #15

Open Anddd7 opened 1 year ago

Anddd7 commented 1 year ago

Search first

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.

Anddd7 commented 1 year ago

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

I was raised an issue in excalidraw to add a new font, https://github.com/excalidraw/excalidraw/issues/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.