### Godot version

8449592d92eaeef990f5502b419d491ee3eeb7a6

### System information

Windows 11

### Issue description

Zooming in the script editor on an empty script freezes the entire editor for a few seconds, but if the file is large then it freezes for 4-5 seconds (which is unacceptable). Looks like a recent regression.

### Steps to reproduce

Just zoom in/out on the large script file.

### Minimal reproduction project

N/A
_font_set_face_index(sysf.rid, best_match);
								}
								sysf.index = best_match;
								
								if (best_score != 70) {
									Dictionary ftr = _font_supported_variation_list(sysf.rid);
									if (ftr.has(wdth_tag)) {
										var[wdth_tag] = font_stretch;
										_font_set_stretch(sysf.rid, font_stretch);
									}
									if (ftr.has(wgth_tag)) {
										var[wgth_tag] = font_weight;
										_font_set_weight(sysf.rid, font_weight);
									}
									if ((font_style & TextServer::FONT_ITALIC) && ftr.has(ital_tag)) {
										var[ital_tag] = 1;
										_font_set_style(sysf.rid, _font_get_style(sysf.rid) | TextServer::FONT_ITALIC);
									}
								}
								_font_set_antialiasing(sysf.rid, key.antialiasing);
								_font_set_generate_mipmaps(sysf.rid, key.mipmaps);
								_font_set_multichannel_signed_distance_field(sysf.rid, key.msdf);
								_font_set_msdf_pixel_range(sysf.rid, key.msdf_range);
								_font_set_msdf_size(sysf.rid, key.msdf_source_size);
								_font_set_fixed_size(sysf.rid, key.fixed_size);
								_font_set_force_autohinter(sysf.rid, key.force_autohinter);
								_font_set_hinting(sysf.rid, key.hinting);
								_font_set_subpixel_positioning(sysf.rid, key.subpixel_positioning);
								_font_set_variation_coordinates(sysf.rid, var);
								_font_set_oversampling(sysf.rid, key.oversampling);