mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: load fonts for exportToCanvas
(#8298)
This commit is contained in:
parent
adcdbe2907
commit
5a0771ad9c
4 changed files with 73 additions and 20 deletions
|
@ -2345,7 +2345,7 @@ class App extends React.Component<AppProps, AppState> {
|
|||
// fire (looking at you Safari), so on init we manually load all
|
||||
// fonts and rerender scene text elements once done. This also
|
||||
// seems faster even in browsers that do fire the loadingdone event.
|
||||
this.fonts.load();
|
||||
this.fonts.loadSceneFonts();
|
||||
};
|
||||
|
||||
private isMobileBreakpoint = (width: number, height: number) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue