Add options to embolden and transform font outlines to simulate bold and italic typefaces.

This commit is contained in:
bruvzg 2022-03-11 09:31:16 +02:00
parent 1e099afc8a
commit b32e8d63d8
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
17 changed files with 364 additions and 25 deletions

View file

@ -35,7 +35,7 @@
const int default_font_size = 16;
void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, Ref<Texture2D> &default_icon, Ref<StyleBox> &default_style, float p_scale);
void fill_default_theme(Ref<Theme> &theme, const Ref<Font> &default_font, const Ref<Font> &bold_font, const Ref<Font> &bold_italics_font, const Ref<Font> &italics_font, Ref<Texture2D> &default_icon, Ref<StyleBox> &default_style, float p_scale);
void make_default_theme(float p_scale, Ref<Font> p_font, TextServer::SubpixelPositioning p_subpixel, TextServer::Hinting p_hinting, bool p_aa);
void clear_default_theme();