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
|
@ -89,7 +89,7 @@ export const FontPickerList = React.memo(
|
|||
);
|
||||
|
||||
const sceneFamilies = useMemo(
|
||||
() => new Set(fonts.sceneFamilies),
|
||||
() => new Set(fonts.getSceneFontFamilies()),
|
||||
// cache per selected font family, so hover re-render won't mess it up
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
[selectedFontFamily],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue