@@ -307,6 +307,9 @@ def _on_font_size_changed(self, spin_button):
307307 font_size = spin_button .get_value ()
308308 if self .editing_text_action :
309309 self .editing_text_action .settings .font_size = font_size
310+ self .editing_text_action .font_size = font_size
311+ if self .selected_action == self .editing_text_action :
312+ self .queue_draw ()
310313 else :
311314 self .settings .font_size = font_size
312315
@@ -324,6 +327,9 @@ def _on_text_entry_popover_closed(self, popover):
324327 if self .editing_text_action :
325328 if text :
326329 self .editing_text_action .text = text
330+ if hasattr (self .text_entry_popup , 'font_size_spin' ):
331+ self .editing_text_action .font_size = self .text_entry_popup .font_size_spin .get_value ()
332+ self .editing_text_action .settings .font_size = self .text_entry_popup .font_size_spin .get_value ()
327333 else :
328334 if self .editing_text_action in self .actions :
329335 self .actions .remove (self .editing_text_action )
@@ -332,18 +338,23 @@ def _on_text_entry_popover_closed(self, popover):
332338 self .redo_stack .clear ()
333339 else :
334340 if text :
341+ current_settings = self .settings .copy ()
342+ if hasattr (self .text_entry_popup , 'font_size_spin' ):
343+ current_settings .font_size = self .text_entry_popup .font_size_spin .get_value ()
344+
335345 action = TextAction (
336346 self .text_position ,
337347 text ,
338348 self ._get_modified_image_bounds (),
339- self . settings . copy ()
349+ current_settings
340350 )
341351 self .actions .append (action )
342352 self .redo_stack .clear ()
343353
344354 self ._cleanup_text_entry ()
345355 self .queue_draw ()
346356
357+
347358 def _on_text_entry_changed (self , entry ):
348359 self .live_text = entry .get_text ()
349360 if self .editing_text_action :
0 commit comments