diff options
| author | Rémi Verschelde <remi@verschelde.fr> | 2021-09-21 13:33:44 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-09-21 13:33:44 +0200 |
| commit | 8085affdb109123f68059e37beb2236a1f94de1a (patch) | |
| tree | 22bd3469568373217e94ebcd8c2368d2f3ce45fa /servers | |
| parent | 2717f583a4de73617fe8ae049e4313ac843d6bb0 (diff) | |
| parent | c931906af71ffdc49dd10611bb4ac69febdca559 (diff) | |
Merge pull request #52890 from bruvzg/rtl_effects_connected
Improve connected grapheme handling in the RTL CharFX.
Diffstat (limited to 'servers')
| -rw-r--r-- | servers/text_server.cpp | 2 | ||||
| -rw-r--r-- | servers/text_server.h | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/servers/text_server.cpp b/servers/text_server.cpp index 2f343e8f80..4886a6f582 100644 --- a/servers/text_server.cpp +++ b/servers/text_server.cpp @@ -447,6 +447,8 @@ void TextServer::_bind_methods() { BIND_ENUM_CONSTANT(GRAPHEME_IS_TAB); BIND_ENUM_CONSTANT(GRAPHEME_IS_ELONGATION); BIND_ENUM_CONSTANT(GRAPHEME_IS_PUNCTUATION); + BIND_ENUM_CONSTANT(GRAPHEME_IS_UNDERSCORE); + BIND_ENUM_CONSTANT(GRAPHEME_IS_CONNECTED); /* Hinting */ BIND_ENUM_CONSTANT(HINTING_NONE); diff --git a/servers/text_server.h b/servers/text_server.h index 62e02e3c97..90ad9b493b 100644 --- a/servers/text_server.h +++ b/servers/text_server.h @@ -91,6 +91,7 @@ public: GRAPHEME_IS_ELONGATION = 1 << 7, // Elongation (e.g. kashida), glyph can be duplicated or truncated to fit line to width. GRAPHEME_IS_PUNCTUATION = 1 << 8, // Punctuation, except underscore (can be used as word break, but not line break or justifiction). GRAPHEME_IS_UNDERSCORE = 1 << 9, // Underscore (can be used as word break). + GRAPHEME_IS_CONNECTED = 1 << 10, // Connected to previous grapheme. }; enum Hinting { |