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:
parent
cb4e42155d
commit
56a8d3f30c
24 changed files with 564 additions and 43 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue