excalidraw-vscode icon indicating copy to clipboard operation
excalidraw-vscode copied to clipboard

Missing hand draw font family on MacOS

Open stauvel opened this issue 2 years ago • 2 comments

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 avatar Sep 02 '22 13:09 stauvel

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...

stauvel avatar Sep 02 '22 13:09 stauvel

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

pomdtr avatar Sep 02 '22 13:09 pomdtr

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 :)

LudoGH avatar Nov 15 '22 01:11 LudoGH

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

pomdtr avatar Nov 15 '22 07:11 pomdtr

image

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

Fraetor avatar Feb 28 '23 22:02 Fraetor

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).

LudoGH avatar Mar 26 '23 14:03 LudoGH

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 avatar Apr 15 '23 15:04 pomdtr

Should be fixed in v3.5.0.

pomdtr avatar Apr 15 '23 15:04 pomdtr

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

LudoGH avatar Apr 16 '23 00:04 LudoGH