Skip to content

Fix missing Excalidraw fonts (bundle excalidraw-assets)#69

Open
ZimengXiong wants to merge 1 commit intomainfrom
fix/issue-68-missing-fonts
Open

Fix missing Excalidraw fonts (bundle excalidraw-assets)#69
ZimengXiong wants to merge 1 commit intomainfrom
fix/issue-68-missing-fonts

Conversation

@ZimengXiong
Copy link
Copy Markdown
Owner

@ZimengXiong ZimengXiong commented Feb 18, 2026

Fixes #68.

  • Set window.EXCALIDRAW_ASSET_PATH early (in frontend/index.html) so Excalidraw loads its asset bundle from the same origin.
  • Copy excalidraw-assets (and dev variant) from @excalidraw/excalidraw into public/ for dev and dist/ for production builds.
  • Preload Excalidraw fonts before mounting the editor to avoid cached fallback font rendering.
  • Ignore generated asset dirs in .gitignore.

Tested:

  • cd frontend && npm test
  • cd frontend && npm run build

@BoxBoxJason
Copy link
Copy Markdown

Hey ! This would also fix #98

Great work by the way !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Missing fonts?

2 participants