diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-12-13 20:05:27 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-13 20:05:27 +0100 |
| commit | 06314c1b0e8100546a53cf2786fa244c5d19af6f (patch) | |
| tree | 20f75fac2110d3466e759d51518b5202506490ff /servers/text_server.h | |
| parent | bbf7bb383810f397760961cb1666860f9b0791b8 (diff) | |
| parent | c1d261fdb09db3aae4c7fa6587812a697f2ea8cd (diff) | |
| download | redot-engine-06314c1b0e8100546a53cf2786fa244c5d19af6f.tar.gz | |
Merge pull request #43030 from bruvzg/ctl_var_font
[Complex Text Layouts] Add variable fonts support.
Diffstat (limited to 'servers/text_server.h')
| -rw-r--r-- | servers/text_server.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/servers/text_server.h b/servers/text_server.h index 6796b7f1d6..09179cd218 100644 --- a/servers/text_server.h +++ b/servers/text_server.h @@ -94,7 +94,8 @@ public: FEATURE_KASHIDA_JUSTIFICATION = 1 << 3, FEATURE_BREAK_ITERATORS = 1 << 4, FEATURE_FONT_SYSTEM = 1 << 5, - FEATURE_USE_SUPPORT_DATA = 1 << 6 + FEATURE_FONT_VARIABLE = 1 << 6, + FEATURE_USE_SUPPORT_DATA = 1 << 7 }; struct Glyph { @@ -246,6 +247,10 @@ public: virtual bool font_get_antialiased(RID p_font) const = 0; virtual Dictionary font_get_feature_list(RID p_font) const { return Dictionary(); }; + virtual Dictionary font_get_variation_list(RID p_font) const { return Dictionary(); }; + + virtual void font_set_variation(RID p_font, const String &p_name, double p_value){}; + virtual double font_get_variation(RID p_font, const String &p_name) const { return 0; }; virtual void font_set_distance_field_hint(RID p_font, bool p_distance_field) = 0; virtual bool font_get_distance_field_hint(RID p_font) const = 0; |
