You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-15 13:51:40 +00:00
Merge pull request #89395 from bruvzg/rtl_ts_img_range
[RTL] Use "visible characters" property for inline object visibility
This commit is contained in:
@@ -296,6 +296,8 @@ void TextServerExtension::_bind_methods() {
|
||||
|
||||
GDVIRTUAL_BIND(_shaped_text_get_objects, "shaped");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_object_rect, "shaped", "key");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_object_range, "shaped", "key");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_object_glyph, "shaped", "key");
|
||||
|
||||
GDVIRTUAL_BIND(_shaped_text_get_size, "shaped");
|
||||
GDVIRTUAL_BIND(_shaped_text_get_ascent, "shaped");
|
||||
@@ -1297,6 +1299,18 @@ Rect2 TextServerExtension::shaped_text_get_object_rect(const RID &p_shaped, cons
|
||||
return ret;
|
||||
}
|
||||
|
||||
Vector2i TextServerExtension::shaped_text_get_object_range(const RID &p_shaped, const Variant &p_key) const {
|
||||
Vector2i ret;
|
||||
GDVIRTUAL_CALL(_shaped_text_get_object_range, p_shaped, p_key, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
int64_t TextServerExtension::shaped_text_get_object_glyph(const RID &p_shaped, const Variant &p_key) const {
|
||||
int64_t ret = -1;
|
||||
GDVIRTUAL_CALL(_shaped_text_get_object_glyph, p_shaped, p_key, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
Size2 TextServerExtension::shaped_text_get_size(const RID &p_shaped) const {
|
||||
Size2 ret;
|
||||
GDVIRTUAL_CALL(_shaped_text_get_size, p_shaped, ret);
|
||||
|
||||
Reference in New Issue
Block a user