You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Improvements to Label's layout options
- Added options to trim the text in case it overruns - Added more autowrap modes - Improved line breaking, which ignores trailing spaces
This commit is contained in:
@@ -498,6 +498,11 @@ bool TextServerGDNative::shaped_text_update_justification_ops(RID p_shaped) {
|
||||
return interface->shaped_text_update_justification_ops(data, (godot_rid *)&p_shaped);
|
||||
}
|
||||
|
||||
void TextServerGDNative::shaped_text_overrun_trim_to_width(RID p_shaped_line, float p_width, uint8_t p_clip_flags) {
|
||||
ERR_FAIL_COND(interface == nullptr);
|
||||
interface->shaped_text_overrun_trim_to_width(data, (godot_rid *)&p_shaped_line, p_width, p_clip_flags);
|
||||
};
|
||||
|
||||
bool TextServerGDNative::shaped_text_is_ready(RID p_shaped) const {
|
||||
ERR_FAIL_COND_V(interface == nullptr, false);
|
||||
return interface->shaped_text_is_ready(data, (godot_rid *)&p_shaped);
|
||||
|
||||
Reference in New Issue
Block a user