excalidraw/excalidraw-vscode

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

Opened this issue · 5 comments

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

Same thing happening here. Any solutions?

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.

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

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.

same here. it ruins the coolness :(