Implement Label3D node.
Add "generate_mipmap" font import option. Add some missing features to the Sprite3D. Move BiDi override code from Control to TextServer. Add functions to access TextServer font cache textures. Add MSDF related flags and shader to the standard material. Change standard material cache to use HashMap instead of Vector.
This commit is contained in:
parent
f4b0c7a1ea
commit
be611c1c05
59 changed files with 2270 additions and 251 deletions
|
|
@ -104,6 +104,11 @@ public:
|
|||
GDVIRTUAL2(font_set_antialiased, RID, bool);
|
||||
GDVIRTUAL1RC(bool, font_is_antialiased, RID);
|
||||
|
||||
virtual void font_set_generate_mipmaps(const RID &p_font_rid, bool p_generate_mipmaps) override;
|
||||
virtual bool font_get_generate_mipmaps(const RID &p_font_rid) const override;
|
||||
GDVIRTUAL2(font_set_generate_mipmaps, RID, bool);
|
||||
GDVIRTUAL1RC(bool, font_get_generate_mipmaps, RID);
|
||||
|
||||
virtual void font_set_multichannel_signed_distance_field(const RID &p_font_rid, bool p_msdf) override;
|
||||
virtual bool font_is_multichannel_signed_distance_field(const RID &p_font_rid) const override;
|
||||
GDVIRTUAL2(font_set_multichannel_signed_distance_field, RID, bool);
|
||||
|
|
@ -245,6 +250,12 @@ public:
|
|||
GDVIRTUAL3RC(int64_t, font_get_glyph_texture_idx, RID, const Vector2i &, int64_t);
|
||||
GDVIRTUAL4(font_set_glyph_texture_idx, RID, const Vector2i &, int64_t, int64_t);
|
||||
|
||||
virtual RID font_get_glyph_texture_rid(const RID &p_font_rid, const Vector2i &p_size, int64_t p_glyph) const override;
|
||||
GDVIRTUAL3RC(RID, font_get_glyph_texture_rid, RID, const Vector2i &, int64_t);
|
||||
|
||||
virtual Size2 font_get_glyph_texture_size(const RID &p_font_rid, const Vector2i &p_size, int64_t p_glyph) const override;
|
||||
GDVIRTUAL3RC(Size2, font_get_glyph_texture_size, RID, const Vector2i &, int64_t);
|
||||
|
||||
virtual Dictionary font_get_glyph_contours(const RID &p_font, int64_t p_size, int64_t p_index) const override;
|
||||
GDVIRTUAL3RC(Dictionary, font_get_glyph_contours, RID, int64_t, int64_t);
|
||||
|
||||
|
|
@ -479,6 +490,9 @@ public:
|
|||
GDVIRTUAL2RC(String, string_to_upper, const String &, const String &);
|
||||
GDVIRTUAL2RC(String, string_to_lower, const String &, const String &);
|
||||
|
||||
Array parse_structured_text(StructuredTextParser p_parser_type, const Array &p_args, const String &p_text) const;
|
||||
GDVIRTUAL3RC(Array, parse_structured_text, StructuredTextParser, const Array &, const String &);
|
||||
|
||||
TextServerExtension();
|
||||
~TextServerExtension();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue