@@ -154,14 +154,6 @@ export class FontManager {
154154 */
155155 async addFont ( font : Font ) : Promise < boolean > {
156156 try {
157- const sandbox = this . editorEngine . activeSandbox ;
158- if ( ! sandbox ) {
159- console . error ( 'No sandbox session found' ) ;
160- return false ;
161- }
162-
163- await this . ensureConfigFilesExist ( ) ;
164-
165157 const success = await this . fontConfigManager . addFont ( font ) ;
166158 if ( success ) {
167159 // Update the fonts array
@@ -173,15 +165,6 @@ export class FontManager {
173165 // Load the new font in the search manager
174166 await this . fontSearchManager . loadFontFromBatch ( [ font ] ) ;
175167
176- // Add font to Tailwind config
177- await addFontToTailwindConfig ( font , sandbox ) ;
178-
179- // Add font variable to root layout
180- await this . layoutManager . addFontVariableToRootLayout ( font . id ) ;
181-
182- // Reload all views to apply new font styles
183- this . editorEngine . frames . reloadAllViews ( ) ;
184-
185168 return true ;
186169 }
187170 return false ;
@@ -212,9 +195,6 @@ export class FontManager {
212195 this . _defaultFont = null ;
213196 }
214197
215- // Reload all views to apply font removal
216- this . editorEngine . frames . reloadAllViews ( ) ;
217-
218198 return result ;
219199 }
220200 return false ;
@@ -408,9 +388,6 @@ export class FontManager {
408388 this . _fonts = currentFonts ;
409389 // Update font search manager with current fonts
410390 this . fontSearchManager . updateFontsList ( this . _fonts ) ;
411-
412- // Reload all views to apply font changes
413- this . editorEngine . frames . reloadAllViews ( ) ;
414391 }
415392
416393 this . previousFonts = currentFonts ;
0 commit comments