mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Use Inter as the default editor font, features enabled
This commit is contained in:
parent
7d7d479162
commit
6cf4daafbb
11 changed files with 125 additions and 18 deletions
|
|
@ -50,7 +50,7 @@ TEST_SUITE("[TextServer]") {
|
|||
}
|
||||
|
||||
RID font = ts->create_font();
|
||||
ts->font_set_data_ptr(font, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
CHECK_FALSE_MESSAGE(font == RID(), "Loading font failed.");
|
||||
ts->free_rid(font);
|
||||
}
|
||||
|
|
@ -66,7 +66,7 @@ TEST_SUITE("[TextServer]") {
|
|||
}
|
||||
|
||||
RID font1 = ts->create_font();
|
||||
ts->font_set_data_ptr(font1, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font1, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
ts->font_set_allow_system_fallback(font1, false);
|
||||
RID font2 = ts->create_font();
|
||||
ts->font_set_data_ptr(font2, _font_NotoSansThai_Regular, _font_NotoSansThai_Regular_size);
|
||||
|
|
@ -118,7 +118,7 @@ TEST_SUITE("[TextServer]") {
|
|||
}
|
||||
|
||||
RID font1 = ts->create_font();
|
||||
ts->font_set_data_ptr(font1, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font1, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
RID font2 = ts->create_font();
|
||||
ts->font_set_data_ptr(font2, _font_Vazirmatn_Regular, _font_Vazirmatn_Regular_size);
|
||||
|
||||
|
|
@ -167,7 +167,7 @@ TEST_SUITE("[TextServer]") {
|
|||
}
|
||||
|
||||
RID font1 = ts->create_font();
|
||||
ts->font_set_data_ptr(font1, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font1, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
ts->font_set_allow_system_fallback(font1, false);
|
||||
RID font2 = ts->create_font();
|
||||
ts->font_set_data_ptr(font2, _font_NotoSansThai_Regular, _font_NotoSansThai_Regular_size);
|
||||
|
|
@ -565,7 +565,7 @@ TEST_SUITE("[TextServer]") {
|
|||
// 5^ 10^
|
||||
|
||||
RID font1 = ts->create_font();
|
||||
ts->font_set_data_ptr(font1, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font1, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
RID font2 = ts->create_font();
|
||||
ts->font_set_data_ptr(font2, _font_NotoSansThai_Regular, _font_NotoSansThai_Regular_size);
|
||||
|
||||
|
|
@ -620,7 +620,7 @@ TEST_SUITE("[TextServer]") {
|
|||
}
|
||||
|
||||
RID font1 = ts->create_font();
|
||||
ts->font_set_data_ptr(font1, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font1, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
RID font2 = ts->create_font();
|
||||
ts->font_set_data_ptr(font2, _font_Vazirmatn_Regular, _font_Vazirmatn_Regular_size);
|
||||
|
||||
|
|
@ -931,7 +931,7 @@ TEST_SUITE("[TextServer]") {
|
|||
}
|
||||
|
||||
RID font1 = ts->create_font();
|
||||
ts->font_set_data_ptr(font1, _font_NotoSans_Regular, _font_NotoSans_Regular_size);
|
||||
ts->font_set_data_ptr(font1, _font_Inter_Regular, _font_Inter_Regular_size);
|
||||
|
||||
Array font = { font1 };
|
||||
RID ctx = ts->create_shaped_text();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue