()
| 142 | } |
| 143 | |
| 144 | function saveCustomFonts() { |
| 145 | const customFonts = {}; |
| 146 | |
| 147 | for (const name of customFontNames) { |
| 148 | const css = fonts.get(name); |
| 149 | if (css) { |
| 150 | customFonts[name] = css; |
| 151 | } |
| 152 | } |
| 153 | |
| 154 | localStorage.setItem(CUSTOM_FONTS_KEY, JSON.stringify(customFonts)); |
| 155 | } |
| 156 | |
| 157 | function loadCustomFonts() { |
| 158 | try { |