You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
[Text Overrun] Add option to set custom ellipsis character, add support for system font fallback.
This commit is contained in:
@@ -236,6 +236,9 @@ void TextServerExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_shaped_text_set_custom_punctuation, "shaped", "punct");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_custom_punctuation, "shaped");
|
||||
|
||||
GDVIRTUAL_BIND(_shaped_text_set_custom_ellipsis, "shaped", "char");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_custom_ellipsis, "shaped");
|
||||
|
||||
GDVIRTUAL_BIND(_shaped_text_set_orientation, "shaped", "orientation");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_orientation, "shaped");
|
||||
|
||||
@@ -1058,6 +1061,16 @@ String TextServerExtension::shaped_text_get_custom_punctuation(const RID &p_shap
|
||||
return ret;
|
||||
}
|
||||
|
||||
void TextServerExtension::shaped_text_set_custom_ellipsis(const RID &p_shaped, int64_t p_char) {
|
||||
GDVIRTUAL_CALL(_shaped_text_set_custom_ellipsis, p_shaped, p_char);
|
||||
}
|
||||
|
||||
int64_t TextServerExtension::shaped_text_get_custom_ellipsis(const RID &p_shaped) const {
|
||||
int64_t ret = 0;
|
||||
GDVIRTUAL_CALL(_shaped_text_get_custom_ellipsis, p_shaped, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void TextServerExtension::shaped_text_set_preserve_invalid(const RID &p_shaped, bool p_enabled) {
|
||||
GDVIRTUAL_CALL(_shaped_text_set_preserve_invalid, p_shaped, p_enabled);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user