|
@@ -111,12 +111,12 @@ public:
|
|
|
|
|
|
virtual void font_set_weight(const RID &p_font_rid, int64_t p_weight) override;
|
|
virtual void font_set_weight(const RID &p_font_rid, int64_t p_weight) override;
|
|
virtual int64_t font_get_weight(const RID &p_font_rid) const override;
|
|
virtual int64_t font_get_weight(const RID &p_font_rid) const override;
|
|
- GDVIRTUAL2(_font_set_weight, RID, int);
|
|
|
|
|
|
+ GDVIRTUAL2(_font_set_weight, RID, int64_t);
|
|
GDVIRTUAL1RC(int64_t, _font_get_weight, RID);
|
|
GDVIRTUAL1RC(int64_t, _font_get_weight, RID);
|
|
|
|
|
|
virtual void font_set_stretch(const RID &p_font_rid, int64_t p_stretch) override;
|
|
virtual void font_set_stretch(const RID &p_font_rid, int64_t p_stretch) override;
|
|
virtual int64_t font_get_stretch(const RID &p_font_rid) const override;
|
|
virtual int64_t font_get_stretch(const RID &p_font_rid) const override;
|
|
- GDVIRTUAL2(_font_set_stretch, RID, int);
|
|
|
|
|
|
+ GDVIRTUAL2(_font_set_stretch, RID, int64_t);
|
|
GDVIRTUAL1RC(int64_t, _font_get_stretch, RID);
|
|
GDVIRTUAL1RC(int64_t, _font_get_stretch, RID);
|
|
|
|
|
|
virtual void font_set_antialiasing(const RID &p_font_rid, TextServer::FontAntialiasing p_antialiasing) override;
|
|
virtual void font_set_antialiasing(const RID &p_font_rid, TextServer::FontAntialiasing p_antialiasing) override;
|
|
@@ -395,11 +395,11 @@ public:
|
|
GDVIRTUAL2RC(int64_t, _shaped_text_get_spacing, RID, SpacingType);
|
|
GDVIRTUAL2RC(int64_t, _shaped_text_get_spacing, RID, SpacingType);
|
|
|
|
|
|
virtual bool shaped_text_add_string(const RID &p_shaped, const String &p_text, const TypedArray<RID> &p_fonts, int64_t p_size, const Dictionary &p_opentype_features = Dictionary(), const String &p_language = "", const Variant &p_meta = Variant()) override;
|
|
virtual bool shaped_text_add_string(const RID &p_shaped, const String &p_text, const TypedArray<RID> &p_fonts, int64_t p_size, const Dictionary &p_opentype_features = Dictionary(), const String &p_language = "", const Variant &p_meta = Variant()) override;
|
|
- virtual bool shaped_text_add_object(const RID &p_shaped, const Variant &p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, int64_t p_length = 1, float p_baseline = 0.0) override;
|
|
|
|
- virtual bool shaped_text_resize_object(const RID &p_shaped, const Variant &p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, float p_baseline = 0.0) override;
|
|
|
|
|
|
+ virtual bool shaped_text_add_object(const RID &p_shaped, const Variant &p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, int64_t p_length = 1, double p_baseline = 0.0) override;
|
|
|
|
+ virtual bool shaped_text_resize_object(const RID &p_shaped, const Variant &p_key, const Size2 &p_size, InlineAlignment p_inline_align = INLINE_ALIGNMENT_CENTER, double p_baseline = 0.0) override;
|
|
GDVIRTUAL7R(bool, _shaped_text_add_string, RID, const String &, const TypedArray<RID> &, int64_t, const Dictionary &, const String &, const Variant &);
|
|
GDVIRTUAL7R(bool, _shaped_text_add_string, RID, const String &, const TypedArray<RID> &, int64_t, const Dictionary &, const String &, const Variant &);
|
|
- GDVIRTUAL6R(bool, _shaped_text_add_object, RID, const Variant &, const Size2 &, InlineAlignment, int64_t, float);
|
|
|
|
- GDVIRTUAL5R(bool, _shaped_text_resize_object, RID, const Variant &, const Size2 &, InlineAlignment, float);
|
|
|
|
|
|
+ GDVIRTUAL6R(bool, _shaped_text_add_object, RID, const Variant &, const Size2 &, InlineAlignment, int64_t, double);
|
|
|
|
+ GDVIRTUAL5R(bool, _shaped_text_resize_object, RID, const Variant &, const Size2 &, InlineAlignment, double);
|
|
|
|
|
|
virtual int64_t shaped_get_span_count(const RID &p_shaped) const override;
|
|
virtual int64_t shaped_get_span_count(const RID &p_shaped) const override;
|
|
virtual Variant shaped_get_span_meta(const RID &p_shaped, int64_t p_index) const override;
|
|
virtual Variant shaped_get_span_meta(const RID &p_shaped, int64_t p_index) const override;
|
|
@@ -510,8 +510,8 @@ public:
|
|
virtual String strip_diacritics(const String &p_string) const override;
|
|
virtual String strip_diacritics(const String &p_string) const override;
|
|
GDVIRTUAL1RC(String, _strip_diacritics, const String &);
|
|
GDVIRTUAL1RC(String, _strip_diacritics, const String &);
|
|
|
|
|
|
- virtual PackedInt32Array string_get_word_breaks(const String &p_string, const String &p_language = "", int p_chars_per_line = 0) const override;
|
|
|
|
- GDVIRTUAL3RC(PackedInt32Array, _string_get_word_breaks, const String &, const String &, int);
|
|
|
|
|
|
+ virtual PackedInt32Array string_get_word_breaks(const String &p_string, const String &p_language = "", int64_t p_chars_per_line = 0) const override;
|
|
|
|
+ GDVIRTUAL3RC(PackedInt32Array, _string_get_word_breaks, const String &, const String &, int64_t);
|
|
|
|
|
|
virtual bool is_valid_identifier(const String &p_string) const override;
|
|
virtual bool is_valid_identifier(const String &p_string) const override;
|
|
GDVIRTUAL1RC(bool, _is_valid_identifier, const String &);
|
|
GDVIRTUAL1RC(bool, _is_valid_identifier, const String &);
|