zsviczian / obsidian-excalidraw-plugin

A plugin to edit and view Excalidraw drawings in Obsidian
4.11k stars 223 forks source link

BUG: fourth font won't work after obsidian re-launch #1290

Open fujohnwang opened 1 year ago

fujohnwang commented 1 year ago

Your environment

SYSTEM INFO:
    Obsidian version: v1.3.7
    Installer version: v1.3.5
    Operating system: Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:22 PDT 2023; root:xnu-8796.121.3~7/RELEASE_X86_64 22.5.0
    Login status: not logged in
    Insider build toggle: off
    Live preview: on
    Legacy editor: off
    Base theme: dark
    Community theme: AnuPpuccin v1.3.1
    Snippets enabled: 10
    Restricted mode: off
    Plugins installed: 19
    Plugins enabled: 18
        1: Paste URL into selection v1.7.0
        2: Cycle through Panes v0.1.1
        3: Excalidraw v1.9.17
        4: Advanced Tables v0.18.1
        5: Buttons v0.4.19
        6: Style Settings v1.0.3
        7: Banners v1.3.3
        8: Homepage v2.8
        9: Dataview v0.5.55
        10: Templater v1.16.0
        11: List Callouts v1.1.4
        12: Copy Image and URL context menu v1.4.0
        13: Open In New Tab v1.0.3
        14: Excel to Markdown Table v0.4.0
        15: Tasks v1.25.0
        16: Text Generator v0.2.15
        17: Obsidian Git v2.17.4
        18: ChatGPT MD v1.4.3

RECOMMENDATIONS:
    Custom theme and snippets: for cosmetic issues, please first try updating your theme and disabling your snippets. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community theme and snippets.
    Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Describe the bug

Launch obsidian, open some xyz.excalidraw file, the fourth font won't apply properly.

Only open plugin settings and select the font again(change back to same font), the excalidraw will display properly.

image

Expected behavior

As long as I had set the fourth font, whenever I open an excalidraw file, the fourth font should apply and display properly.

Screenshots

😬 bad case:

image

😃 expected case:

image
mkempster commented 9 months ago

For others trying to replace Virgil with some other font with the obsidian-excalidraw plugin, this post describes a fix until this bug gets some love.

https://forum.obsidian.md/t/how-to-get-a-monospaced-font-in-obsidian-excalidraw-plugin/74062