Implement BiDi override mode for GDScript source.

This commit is contained in:
bruvzg 2023-01-18 09:33:35 +02:00
parent b5f3ac522e
commit 5361ec9f43
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
21 changed files with 178 additions and 55 deletions

View file

@ -2086,6 +2086,7 @@ CodeTextEditor::CodeTextEditor() {
text_editor = memnew(CodeEdit);
add_child(text_editor);
text_editor->set_v_size_flags(SIZE_EXPAND_FILL);
text_editor->set_structured_text_bidi_override(TextServer::STRUCTURED_TEXT_GDSCRIPT);
int ot_mode = EDITOR_GET("interface/editor/code_font_contextual_ligatures");
Ref<FontVariation> fc = text_editor->get_theme_font(SNAME("font"));