mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
commit
76c8e76560
86 changed files with 396 additions and 396 deletions
|
|
@ -5794,7 +5794,7 @@ bool TextServerAdvanced::_shaped_text_update_breaks(const RID &p_shaped) {
|
|||
return sd->line_breaks_valid;
|
||||
}
|
||||
|
||||
_FORCE_INLINE_ int64_t _generate_kashida_justification_opportunies(const String &p_data, int64_t p_start, int64_t p_end) {
|
||||
_FORCE_INLINE_ int64_t _generate_kashida_justification_opportunities(const String &p_data, int64_t p_start, int64_t p_end) {
|
||||
int64_t kashida_pos = -1;
|
||||
int8_t priority = 100;
|
||||
int64_t i = p_start;
|
||||
|
|
@ -5899,14 +5899,14 @@ bool TextServerAdvanced::_shaped_text_update_justification_ops(const RID &p_shap
|
|||
int limit = 0;
|
||||
for (int i = 0; i < sd->text.length(); i++) {
|
||||
if (is_whitespace(data[i])) {
|
||||
int ks = _generate_kashida_justification_opportunies(sd->text, limit, i) + sd->start;
|
||||
int ks = _generate_kashida_justification_opportunities(sd->text, limit, i) + sd->start;
|
||||
if (ks != -1) {
|
||||
sd->jstops[ks] = true;
|
||||
}
|
||||
limit = i + 1;
|
||||
}
|
||||
}
|
||||
int ks = _generate_kashida_justification_opportunies(sd->text, limit, sd->text.length()) + sd->start;
|
||||
int ks = _generate_kashida_justification_opportunities(sd->text, limit, sd->text.length()) + sd->start;
|
||||
if (ks != -1) {
|
||||
sd->jstops[ks] = true;
|
||||
}
|
||||
|
|
@ -5916,7 +5916,7 @@ bool TextServerAdvanced::_shaped_text_update_justification_ops(const RID &p_shap
|
|||
if (ubrk_getRuleStatus(bi) != UBRK_WORD_NONE) {
|
||||
int i = _convert_pos(sd, ubrk_current(bi));
|
||||
sd->jstops[i + sd->start] = false;
|
||||
int ks = _generate_kashida_justification_opportunies(sd->text, limit, i);
|
||||
int ks = _generate_kashida_justification_opportunities(sd->text, limit, i);
|
||||
if (ks != -1) {
|
||||
sd->jstops[ks + sd->start] = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue