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

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

Open fultonm opened this issue 1 year ago • 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

fultonm avatar Apr 04 '24 03:04 fultonm

Same thing happening here. Any solutions?

Firgrep avatar May 17 '24 20:05 Firgrep

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.

Firgrep avatar Jun 11 '24 19:06 Firgrep

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

Sfinx avatar Jun 12 '24 09:06 Sfinx

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.

xlsigned avatar Jun 18 '24 19:06 xlsigned