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

Displayed font is incorrect until a change is made to the object #132

Open fultonm opened 6 months ago

fultonm commented 6 months ago

When opening a saved diagram, the font of some objects are displayed incorrectly until a change is made to it

I believe #129 mitigates this somewhat when a grouping existing in the file, since the version property of all objects get bumped upon opening the file, thus nudging the fonts to display correctly.

Short screen recording clip demonstrating the behavior: https://1drv.ms/v/s!AiSCz54h8oiP2DStNZH7MXCki94m?e=msR5i5

Firgrep commented 4 months ago

Same thing happening here. Any solutions?

Firgrep commented 3 months ago

Grouping things doesn't change it for me. Right clicking (holding down) on the file when it's open or clicking the three dots above the top-right corner causes a sudden change of the theme but that appears to set the correct fonts. Still not ideal but at least one doesn't need to go through each and every change for them to render.

EDIT: Funnily, if I open a .excalidraw that's been saved by the browser, everything renders fine.

Sfinx commented 3 months ago

same thing here. to reproduce - create box with hand-written text, save, exit vscode. open again - text will be dislplayed as normal until selected

xlsigned commented 3 months ago

Same here. It looks like it is a display problem (only) since the JSON files appears to have the correct font setting. What's also kinda strange is that the file appears to have been modified as soon as it is opened.