You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
[Complex Text Layouts] Refactor Font class, default themes and controls to use Text Server interface.
Implement interface mirroring. Add TextLine and TextParagraph classes. Handle UTF-16 input on macOS and Windows.
This commit is contained in:
@@ -228,6 +228,18 @@ PackedStringArray get_code_completion(CompletionKind p_kind, const String &p_scr
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case CompletionKind::THEME_FONT_SIZES: {
|
||||
Ref<Script> script = ResourceLoader::load(p_script_file.simplify_path());
|
||||
Node *base = _try_find_owner_node_in_tree(script);
|
||||
if (base && Object::cast_to<Control>(base)) {
|
||||
List<StringName> sn;
|
||||
Theme::get_default()->get_font_size_list(base->get_class(), &sn);
|
||||
|
||||
for (List<StringName>::Element *E = sn.front(); E; E = E->next()) {
|
||||
suggestions.push_back(quoted(E->get()));
|
||||
}
|
||||
}
|
||||
} break;
|
||||
case CompletionKind::THEME_STYLES: {
|
||||
Ref<Script> script = ResourceLoader::load(p_script_file.simplify_path());
|
||||
Node *base = _try_find_owner_node_in_tree(script);
|
||||
|
||||
Reference in New Issue
Block a user