diff options
author | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2018-11-10 22:07:32 +0100 |
---|---|---|
committer | Hugo Locurcio <hugo.locurcio@hugo.pro> | 2018-11-10 22:07:32 +0100 |
commit | fd89464d45de1f738561bce55924ffb326981829 (patch) | |
tree | 31e784435eb4a25cc094160ced4f602e3384604d /scene/resources/dynamic_font.h | |
parent | 3e128a6d8aa2982ec4da20c1dd73faa968b9207a (diff) |
Add a property to control DynamicFont anti-aliasing
- Editor font anti-aliasing can now be disabled in the Editor Settings.
- DynamicFonts used in projects can now have their anti-aliasing
disabled in their DynamicFontData child. Changes will be visible
upon reloading the scene in the editor.
Diffstat (limited to 'scene/resources/dynamic_font.h')
-rw-r--r-- | scene/resources/dynamic_font.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/resources/dynamic_font.h b/scene/resources/dynamic_font.h index bd3f84d62c..96437e8982 100644 --- a/scene/resources/dynamic_font.h +++ b/scene/resources/dynamic_font.h @@ -71,12 +71,15 @@ public: HINTING_NORMAL }; + bool is_antialiased() const; + void set_antialiased(bool p_antialiased); Hinting get_hinting() const; void set_hinting(Hinting p_hinting); private: const uint8_t *font_mem; int font_mem_size; + bool antialiased; bool force_autohinter; Hinting hinting; |