excalidraw / excalidraw-vscode

Excalidraw for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=pomdtr.excalidraw-editor
MIT License
457 stars 55 forks source link

Missing hand draw font family on MacOS #60

Closed stauvel closed 1 year ago

stauvel commented 2 years ago

My sketches are beautiful in browser (right side), thx Excalidraw team, but under VSCode on MacOS(left side), I have hand draw font family replaced by Times like font. Same problem with drawio plugin.

Capture d’écran 2022-09-02 à 15 35 57

Any idea how I can setup the hand draw font family on VSCode under MacOS ?

stauvel commented 2 years ago

I finally resolve it by myself : just save a first time a sketch made with a browser and then open it to download the fonts...

pomdtr commented 2 years ago

You should not need to do this 😅. Next time it happens, can you look at the network request tab in the developper tools ?

LudoGH commented 1 year ago

I have the same 'missing Virgil font' problem on my Windows PC at work. => The network request tab of the developper tools shows INTERNET_DISCONNECTED errors trying to download the vendor and fonts from https://unpkg.com. (this site may indeed be blacklisted by my workplace proxy). One of the reasons I use excalidraw in vscode is to work offline. => Am I assuming this wrong? Is there a workaround for the fonts? Apart from the font problem, it runs very well. Great tool :)

pomdtr commented 1 year ago

Thanks for reporting. Something might be wrong, it should use local fonts instead.

Fraetor commented 1 year ago

image

I've had this issue occur on Linux. It seems that the font is being blocked by CORS.

LudoGH commented 1 year ago

Thanks for reporting. Something might be wrong, it should use local fonts instead.

Bonjour, Any chances the Virgil font may be included in the plugin one day, and be used locally (instead of requiring it from unpkg.com) ? Or suggest a workaround to use the plugin+font when working offline (or when unpkg is blocked) ? Again, very great tool, thx.

ps: could we remove 'MacOS' from the topic title, since it seems more related to use local Virgil Font (windows, linux, mac).

pomdtr commented 1 year ago

Any chances the Virgil font may be included in the plugin one day, and be used locally (instead of requiring it from unpkg.com) ?

Workin on it!

pomdtr commented 1 year ago

Should be fixed in v3.5.0.

LudoGH commented 1 year ago

Hello, The v3.5.0 fix works perfect for me :) vscode 1.77.3 with excalidraw-plugin 3.5.0 in Windows10. Thank you so much Achille, this was the only thing that prevent me from using excalidraw at work. Merci infiniment !

Ludovic