diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-02-15 11:10:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-15 11:10:42 +0100 |
commit | d8691e8ce28fd6899a20bdf76623ee1471862bab (patch) | |
tree | fe968dab5b461a24f61f1a0f2c6f98b42b16db93 /modules/text_server_fb/font_fb.h | |
parent | fa06d3cf6303506e8d65fe23f9f3c71e49960b88 (diff) | |
parent | f4d095cdd3d04b3215d42928e6b7ac412d78c4c5 (diff) |
Merge pull request #46043 from bruvzg/restore_char_and_space_extra_spacing
[TextServer] Restore character and space extra spacing support.
Diffstat (limited to 'modules/text_server_fb/font_fb.h')
-rw-r--r-- | modules/text_server_fb/font_fb.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/text_server_fb/font_fb.h b/modules/text_server_fb/font_fb.h index cc72919542..7fccbe06b5 100644 --- a/modules/text_server_fb/font_fb.h +++ b/modules/text_server_fb/font_fb.h @@ -37,6 +37,8 @@ struct FontDataFallback { Map<String, bool> lang_support_overrides; Map<String, bool> script_support_overrides; bool valid = false; + int spacing_space = 0; + int spacing_glyph = 0; virtual void clear_cache() = 0; @@ -50,6 +52,18 @@ struct FontDataFallback { virtual float get_underline_position(int p_size) const = 0; virtual float get_underline_thickness(int p_size) const = 0; + virtual int get_spacing_space() const { return spacing_space; }; + virtual void set_spacing_space(int p_value) { + spacing_space = p_value; + clear_cache(); + }; + + virtual int get_spacing_glyph() const { return spacing_glyph; }; + virtual void set_spacing_glyph(int p_value) { + spacing_glyph = p_value; + clear_cache(); + }; + virtual void set_antialiased(bool p_antialiased) = 0; virtual bool get_antialiased() const = 0; |