summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-08-06 00:16:39 +0200
committerGitHub <noreply@github.com>2022-08-06 00:16:39 +0200
commit94664b4e61be5b2e2c1098a743cca872a5d8d6d8 (patch)
tree398563efe6b8931da7a9872187748b30bd6410f9 /modules
parent04a66e1bab28990f1340e8c20dead25491da0baa (diff)
parent4b155b939ba6f18a65b25c5599c2ecef4d70511a (diff)
Merge pull request #63962 from bruvzg/fix_elong_liga
[Text Server] Prevent composite glyphs which incorporate kashida from being used for justification.
Diffstat (limited to 'modules')
-rw-r--r--modules/text_server_adv/text_server_adv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/text_server_adv/text_server_adv.cpp b/modules/text_server_adv/text_server_adv.cpp
index 21e1bfaa5c..73dbf2f443 100644
--- a/modules/text_server_adv/text_server_adv.cpp
+++ b/modules/text_server_adv/text_server_adv.cpp
@@ -4706,7 +4706,7 @@ bool TextServerAdvanced::shaped_text_update_justification_ops(const RID &p_shape
for (int i = 0; i < sd_size; i++) {
if (sd_glyphs[i].count > 0) {
char32_t c = sd->text[sd_glyphs[i].start - sd->start];
- if (c == 0x0640) {
+ if (c == 0x0640 && sd_glyphs[i].start == sd_glyphs[i].end - 1) {
sd_glyphs[i].flags |= GRAPHEME_IS_ELONGATION;
}
if (sd->jstops.has(sd_glyphs[i].start)) {