@@ -249,6 +249,9 @@ void editor_register_fonts(const Ref<Theme> &p_theme) {
249
249
}
250
250
default_fc->set_spacing (TextServer::SPACING_TOP, -EDSCALE);
251
251
default_fc->set_spacing (TextServer::SPACING_BOTTOM, -EDSCALE);
252
+ Dictionary default_fc_opentype;
253
+ default_fc_opentype[" weight" ] = 400 ;
254
+ default_fc->set_variation_opentype (default_fc_opentype);
252
255
253
256
Ref<FontVariation> default_fc_msdf;
254
257
default_fc_msdf.instantiate ();
@@ -265,6 +268,7 @@ void editor_register_fonts(const Ref<Theme> &p_theme) {
265
268
}
266
269
default_fc_msdf->set_spacing (TextServer::SPACING_TOP, -EDSCALE);
267
270
default_fc_msdf->set_spacing (TextServer::SPACING_BOTTOM, -EDSCALE);
271
+ default_fc_msdf->set_variation_opentype (default_fc_opentype);
268
272
269
273
Ref<FontVariation> bold_fc;
270
274
bold_fc.instantiate ();
@@ -289,6 +293,9 @@ void editor_register_fonts(const Ref<Theme> &p_theme) {
289
293
}
290
294
bold_fc->set_spacing (TextServer::SPACING_TOP, -EDSCALE);
291
295
bold_fc->set_spacing (TextServer::SPACING_BOTTOM, -EDSCALE);
296
+ Dictionary bold_fc_opentype;
297
+ bold_fc_opentype[" weight" ] = 700 ;
298
+ bold_fc->set_variation_opentype (bold_fc_opentype);
292
299
293
300
Ref<FontVariation> bold_fc_msdf;
294
301
bold_fc_msdf.instantiate ();
@@ -313,6 +320,7 @@ void editor_register_fonts(const Ref<Theme> &p_theme) {
313
320
}
314
321
bold_fc_msdf->set_spacing (TextServer::SPACING_TOP, -EDSCALE);
315
322
bold_fc_msdf->set_spacing (TextServer::SPACING_BOTTOM, -EDSCALE);
323
+ bold_fc_msdf->set_variation_opentype (bold_fc_opentype);
316
324
317
325
Ref<FontVariation> mono_fc;
318
326
mono_fc.instantiate ();
0 commit comments