Replace global oversampling with overrideable per-viewport oversampling.
This commit is contained in:
@@ -51,6 +51,7 @@ public:
|
||||
virtual void font_set_fixed_size_scale_mode(const RID &p_font_rid, TextServer::FixedSizeScaleMode p_fixed_size_scale_mode) override {}
|
||||
virtual TextServer::FixedSizeScaleMode font_get_fixed_size_scale_mode(const RID &p_font_rid) const override { return FIXED_SIZE_SCALE_DISABLE; }
|
||||
virtual TypedArray<Vector2i> font_get_size_cache_list(const RID &p_font_rid) const override { return TypedArray<Vector2i>(); }
|
||||
virtual TypedArray<Dictionary> font_get_size_cache_info(const RID &p_font_rid) const override { return TypedArray<Dictionary>(); }
|
||||
virtual void font_clear_size_cache(const RID &p_font_rid) override {}
|
||||
virtual void font_remove_size_cache(const RID &p_font_rid, const Vector2i &p_size) override {}
|
||||
virtual void font_set_ascent(const RID &p_font_rid, int64_t p_size, double p_ascent) override {}
|
||||
@@ -88,8 +89,8 @@ public:
|
||||
virtual bool font_has_char(const RID &p_font_rid, int64_t p_char) const override { return false; }
|
||||
virtual String font_get_supported_chars(const RID &p_font_rid) const override { return String(); }
|
||||
virtual PackedInt32Array font_get_supported_glyphs(const RID &p_font_rid) const override { return PackedInt32Array(); }
|
||||
virtual void font_draw_glyph(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color) const override {}
|
||||
virtual void font_draw_glyph_outline(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, int64_t p_outline_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color) const override {}
|
||||
virtual void font_draw_glyph(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color, float p_oversampling) const override {}
|
||||
virtual void font_draw_glyph_outline(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, int64_t p_outline_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color, float p_oversampling) const override {}
|
||||
|
||||
virtual RID create_shaped_text(TextServer::Direction p_direction, TextServer::Orientation p_orientation) override { return RID(); }
|
||||
virtual void shaped_text_clear(const RID &p_shaped) override {}
|
||||
|
||||
@@ -104,6 +104,7 @@ void TextServerExtension::_bind_methods() {
|
||||
|
||||
GDVIRTUAL_BIND(_font_set_allow_system_fallback, "font_rid", "allow_system_fallback");
|
||||
GDVIRTUAL_BIND(_font_is_allow_system_fallback, "font_rid");
|
||||
GDVIRTUAL_BIND(_font_clear_system_fallback_cache);
|
||||
|
||||
GDVIRTUAL_BIND(_font_set_force_autohinter, "font_rid", "force_autohinter");
|
||||
GDVIRTUAL_BIND(_font_is_force_autohinter, "font_rid");
|
||||
@@ -135,12 +136,15 @@ void TextServerExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_font_set_variation_coordinates, "font_rid", "variation_coordinates");
|
||||
GDVIRTUAL_BIND(_font_get_variation_coordinates, "font_rid");
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL_BIND(_font_set_oversampling, "font_rid", "oversampling");
|
||||
GDVIRTUAL_BIND(_font_get_oversampling, "font_rid");
|
||||
#endif
|
||||
|
||||
GDVIRTUAL_BIND(_font_get_size_cache_list, "font_rid");
|
||||
GDVIRTUAL_BIND(_font_clear_size_cache, "font_rid");
|
||||
GDVIRTUAL_BIND(_font_remove_size_cache, "font_rid", "size");
|
||||
GDVIRTUAL_BIND(_font_get_size_cache_info, "font_rid");
|
||||
|
||||
GDVIRTUAL_BIND(_font_set_ascent, "font_rid", "size", "ascent");
|
||||
GDVIRTUAL_BIND(_font_get_ascent, "font_rid", "size");
|
||||
@@ -208,8 +212,12 @@ void TextServerExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_font_render_range, "font_rid", "size", "start", "end");
|
||||
GDVIRTUAL_BIND(_font_render_glyph, "font_rid", "size", "index");
|
||||
|
||||
GDVIRTUAL_BIND(_font_draw_glyph, "font_rid", "canvas", "size", "pos", "index", "color");
|
||||
GDVIRTUAL_BIND(_font_draw_glyph_outline, "font_rid", "canvas", "size", "outline_size", "pos", "index", "color");
|
||||
GDVIRTUAL_BIND(_font_draw_glyph, "font_rid", "canvas", "size", "pos", "index", "color", "oversampling");
|
||||
GDVIRTUAL_BIND(_font_draw_glyph_outline, "font_rid", "canvas", "size", "outline_size", "pos", "index", "color", "oversampling");
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL_BIND_COMPAT(_font_draw_glyph_bind_compat_104872, "font_rid", "canvas", "size", "pos", "index", "color");
|
||||
GDVIRTUAL_BIND_COMPAT(_font_draw_glyph_outline_bind_compat_104872, "font_rid", "canvas", "size", "outline_size", "pos", "index", "color");
|
||||
#endif
|
||||
|
||||
GDVIRTUAL_BIND(_font_is_language_supported, "font_rid", "language");
|
||||
GDVIRTUAL_BIND(_font_set_language_support_override, "font_rid", "language", "supported");
|
||||
@@ -229,8 +237,12 @@ void TextServerExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_font_supported_feature_list, "font_rid");
|
||||
GDVIRTUAL_BIND(_font_supported_variation_list, "font_rid");
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL_BIND(_font_get_global_oversampling);
|
||||
GDVIRTUAL_BIND(_font_set_global_oversampling, "oversampling");
|
||||
#endif
|
||||
GDVIRTUAL_BIND(_reference_oversampling_level, "oversampling");
|
||||
GDVIRTUAL_BIND(_unreference_oversampling_level, "oversampling");
|
||||
|
||||
GDVIRTUAL_BIND(_get_hex_code_box_size, "size", "index");
|
||||
GDVIRTUAL_BIND(_draw_hex_code_box, "canvas", "size", "pos", "index", "color");
|
||||
@@ -335,8 +347,12 @@ void TextServerExtension::_bind_methods() {
|
||||
GDVIRTUAL_BIND(_shaped_text_hit_test_grapheme, "shaped", "coord");
|
||||
GDVIRTUAL_BIND(_shaped_text_hit_test_position, "shaped", "coord");
|
||||
|
||||
GDVIRTUAL_BIND(_shaped_text_draw, "shaped", "canvas", "pos", "clip_l", "clip_r", "color");
|
||||
GDVIRTUAL_BIND(_shaped_text_draw_outline, "shaped", "canvas", "pos", "clip_l", "clip_r", "outline_size", "color");
|
||||
GDVIRTUAL_BIND(_shaped_text_draw, "shaped", "canvas", "pos", "clip_l", "clip_r", "color", "oversampling");
|
||||
GDVIRTUAL_BIND(_shaped_text_draw_outline, "shaped", "canvas", "pos", "clip_l", "clip_r", "outline_size", "color", "oversampling");
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL_BIND_COMPAT(_shaped_text_draw_bind_compat_104872, "shaped", "canvas", "pos", "clip_l", "clip_r", "color");
|
||||
GDVIRTUAL_BIND_COMPAT(_shaped_text_draw_outline_bind_compat_104872, "shaped", "canvas", "pos", "clip_l", "clip_r", "outline_size", "color");
|
||||
#endif
|
||||
|
||||
GDVIRTUAL_BIND(_shaped_text_get_grapheme_bounds, "shaped", "pos");
|
||||
GDVIRTUAL_BIND(_shaped_text_next_grapheme_pos, "shaped", "pos");
|
||||
@@ -636,6 +652,10 @@ bool TextServerExtension::font_is_allow_system_fallback(const RID &p_font_rid) c
|
||||
return ret;
|
||||
}
|
||||
|
||||
void TextServerExtension::font_clear_system_fallback_cache() {
|
||||
GDVIRTUAL_CALL(_font_clear_system_fallback_cache);
|
||||
}
|
||||
|
||||
void TextServerExtension::font_set_force_autohinter(const RID &p_font_rid, bool p_force_autohinter) {
|
||||
GDVIRTUAL_CALL(_font_set_force_autohinter, p_font_rid, p_force_autohinter);
|
||||
}
|
||||
@@ -736,15 +756,15 @@ Dictionary TextServerExtension::font_get_variation_coordinates(const RID &p_font
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
void TextServerExtension::font_set_oversampling(const RID &p_font_rid, double p_oversampling) {
|
||||
GDVIRTUAL_CALL(_font_set_oversampling, p_font_rid, p_oversampling);
|
||||
// NOP
|
||||
}
|
||||
|
||||
double TextServerExtension::font_get_oversampling(const RID &p_font_rid) const {
|
||||
double ret = 0;
|
||||
GDVIRTUAL_CALL(_font_get_oversampling, p_font_rid, ret);
|
||||
return ret;
|
||||
return 1.0;
|
||||
}
|
||||
#endif
|
||||
|
||||
TypedArray<Vector2i> TextServerExtension::font_get_size_cache_list(const RID &p_font_rid) const {
|
||||
TypedArray<Vector2i> ret;
|
||||
@@ -760,6 +780,12 @@ void TextServerExtension::font_remove_size_cache(const RID &p_font_rid, const Ve
|
||||
GDVIRTUAL_CALL(_font_remove_size_cache, p_font_rid, p_size);
|
||||
}
|
||||
|
||||
TypedArray<Dictionary> TextServerExtension::font_get_size_cache_info(const RID &p_font_rid) const {
|
||||
TypedArray<Dictionary> ret;
|
||||
GDVIRTUAL_CALL(_font_get_size_cache_info, p_font_rid, ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
void TextServerExtension::font_set_ascent(const RID &p_font_rid, int64_t p_size, double p_ascent) {
|
||||
GDVIRTUAL_CALL(_font_set_ascent, p_font_rid, p_size, p_ascent);
|
||||
}
|
||||
@@ -988,12 +1014,18 @@ void TextServerExtension::font_render_glyph(const RID &p_font_rid, const Vector2
|
||||
GDVIRTUAL_CALL(_font_render_glyph, p_font_rid, p_size, p_index);
|
||||
}
|
||||
|
||||
void TextServerExtension::font_draw_glyph(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color) const {
|
||||
GDVIRTUAL_CALL(_font_draw_glyph, p_font_rid, p_canvas, p_size, p_pos, p_index, p_color);
|
||||
void TextServerExtension::font_draw_glyph(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color, float p_oversampling) const {
|
||||
GDVIRTUAL_CALL(_font_draw_glyph, p_font_rid, p_canvas, p_size, p_pos, p_index, p_color, p_oversampling);
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL_CALL(_font_draw_glyph_bind_compat_104872, p_font_rid, p_canvas, p_size, p_pos, p_index, p_color);
|
||||
#endif
|
||||
}
|
||||
|
||||
void TextServerExtension::font_draw_glyph_outline(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, int64_t p_outline_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color) const {
|
||||
GDVIRTUAL_CALL(_font_draw_glyph_outline, p_font_rid, p_canvas, p_size, p_outline_size, p_pos, p_index, p_color);
|
||||
void TextServerExtension::font_draw_glyph_outline(const RID &p_font_rid, const RID &p_canvas, int64_t p_size, int64_t p_outline_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color, float p_oversampling) const {
|
||||
GDVIRTUAL_CALL(_font_draw_glyph_outline, p_font_rid, p_canvas, p_size, p_outline_size, p_pos, p_index, p_color, p_oversampling);
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL_CALL(_font_draw_glyph_outline_bind_compat_104872, p_font_rid, p_canvas, p_size, p_outline_size, p_pos, p_index, p_color);
|
||||
#endif
|
||||
}
|
||||
|
||||
bool TextServerExtension::font_is_language_supported(const RID &p_font_rid, const String &p_language) const {
|
||||
@@ -1070,14 +1102,22 @@ Dictionary TextServerExtension::font_supported_variation_list(const RID &p_font_
|
||||
return ret;
|
||||
}
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
double TextServerExtension::font_get_global_oversampling() const {
|
||||
double ret = 0;
|
||||
GDVIRTUAL_CALL(_font_get_global_oversampling, ret);
|
||||
return ret;
|
||||
return 1.0;
|
||||
}
|
||||
|
||||
void TextServerExtension::font_set_global_oversampling(double p_oversampling) {
|
||||
GDVIRTUAL_CALL(_font_set_global_oversampling, p_oversampling);
|
||||
// NOP
|
||||
}
|
||||
#endif
|
||||
|
||||
void TextServerExtension::reference_oversampling_level(double p_oversampling) {
|
||||
GDVIRTUAL_CALL(_reference_oversampling_level, p_oversampling);
|
||||
}
|
||||
|
||||
void TextServerExtension::unreference_oversampling_level(double p_oversampling) {
|
||||
GDVIRTUAL_CALL(_unreference_oversampling_level, p_oversampling);
|
||||
}
|
||||
|
||||
Vector2 TextServerExtension::get_hex_code_box_size(int64_t p_size, int64_t p_index) const {
|
||||
@@ -1518,18 +1558,28 @@ int64_t TextServerExtension::shaped_text_hit_test_position(const RID &p_shaped,
|
||||
return TextServer::shaped_text_hit_test_position(p_shaped, p_coords);
|
||||
}
|
||||
|
||||
void TextServerExtension::shaped_text_draw(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l, double p_clip_r, const Color &p_color) const {
|
||||
if (GDVIRTUAL_CALL(_shaped_text_draw, p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_color)) {
|
||||
void TextServerExtension::shaped_text_draw(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l, double p_clip_r, const Color &p_color, float p_oversampling) const {
|
||||
if (GDVIRTUAL_CALL(_shaped_text_draw, p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_color, p_oversampling)) {
|
||||
return;
|
||||
}
|
||||
TextServer::shaped_text_draw(p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_color);
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
if (GDVIRTUAL_CALL(_shaped_text_draw_bind_compat_104872, p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_color)) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
TextServer::shaped_text_draw(p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_color, p_oversampling);
|
||||
}
|
||||
|
||||
void TextServerExtension::shaped_text_draw_outline(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l, double p_clip_r, int64_t p_outline_size, const Color &p_color) const {
|
||||
if (GDVIRTUAL_CALL(_shaped_text_draw_outline, p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_outline_size, p_color)) {
|
||||
void TextServerExtension::shaped_text_draw_outline(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l, double p_clip_r, int64_t p_outline_size, const Color &p_color, float p_oversampling) const {
|
||||
if (GDVIRTUAL_CALL(_shaped_text_draw_outline, p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_outline_size, p_color, p_oversampling)) {
|
||||
return;
|
||||
}
|
||||
TextServer::shaped_text_draw_outline(p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_outline_size, p_color);
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
if (GDVIRTUAL_CALL(_shaped_text_draw_outline_bind_compat_104872, p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_outline_size, p_color)) {
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
TextServer::shaped_text_draw_outline(p_shaped, p_canvas, p_pos, p_clip_l, p_clip_r, p_outline_size, p_color, p_oversampling);
|
||||
}
|
||||
|
||||
Vector2 TextServerExtension::shaped_text_get_grapheme_bounds(const RID &p_shaped, int64_t p_pos) const {
|
||||
|
||||
@@ -196,8 +196,10 @@ public:
|
||||
|
||||
virtual void font_set_allow_system_fallback(const RID &p_font_rid, bool p_allow_system_fallback) override;
|
||||
virtual bool font_is_allow_system_fallback(const RID &p_font_rid) const override;
|
||||
virtual void font_clear_system_fallback_cache() override;
|
||||
GDVIRTUAL2(_font_set_allow_system_fallback, RID, bool);
|
||||
GDVIRTUAL1RC(bool, _font_is_allow_system_fallback, RID);
|
||||
GDVIRTUAL0(_font_clear_system_fallback_cache);
|
||||
|
||||
virtual void font_set_force_autohinter(const RID &p_font_rid, bool p_force_autohinter) override;
|
||||
virtual bool font_is_force_autohinter(const RID &p_font_rid) const override;
|
||||
@@ -219,17 +221,21 @@ public:
|
||||
GDVIRTUAL2(_font_set_variation_coordinates, RID, Dictionary);
|
||||
GDVIRTUAL1RC(Dictionary, _font_get_variation_coordinates, RID);
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
virtual void font_set_oversampling(const RID &p_font_rid, double p_oversampling) override;
|
||||
virtual double font_get_oversampling(const RID &p_font_rid) const override;
|
||||
GDVIRTUAL2(_font_set_oversampling, RID, double);
|
||||
GDVIRTUAL1RC(double, _font_get_oversampling, RID);
|
||||
#endif
|
||||
|
||||
virtual TypedArray<Vector2i> font_get_size_cache_list(const RID &p_font_rid) const override;
|
||||
virtual void font_clear_size_cache(const RID &p_font_rid) override;
|
||||
virtual void font_remove_size_cache(const RID &p_font_rid, const Vector2i &p_size) override;
|
||||
virtual TypedArray<Dictionary> font_get_size_cache_info(const RID &p_font_rid) const override;
|
||||
GDVIRTUAL1RC_REQUIRED(TypedArray<Vector2i>, _font_get_size_cache_list, RID);
|
||||
GDVIRTUAL1_REQUIRED(_font_clear_size_cache, RID);
|
||||
GDVIRTUAL2_REQUIRED(_font_remove_size_cache, RID, const Vector2i &);
|
||||
GDVIRTUAL1RC(TypedArray<Dictionary>, _font_get_size_cache_info, RID);
|
||||
|
||||
virtual void font_set_ascent(const RID &p_font_rid, int64_t p_size, double p_ascent) override;
|
||||
virtual double font_get_ascent(const RID &p_font_rid, int64_t p_size) const override;
|
||||
@@ -344,10 +350,14 @@ public:
|
||||
GDVIRTUAL4(_font_render_range, RID, const Vector2i &, int64_t, int64_t);
|
||||
GDVIRTUAL3(_font_render_glyph, RID, const Vector2i &, int64_t);
|
||||
|
||||
virtual void font_draw_glyph(const RID &p_font, const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color = Color(1, 1, 1)) const override;
|
||||
virtual void font_draw_glyph_outline(const RID &p_font, const RID &p_canvas, int64_t p_size, int64_t p_outline_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color = Color(1, 1, 1)) const override;
|
||||
GDVIRTUAL6C_REQUIRED(_font_draw_glyph, RID, RID, int64_t, const Vector2 &, int64_t, const Color &);
|
||||
GDVIRTUAL7C_REQUIRED(_font_draw_glyph_outline, RID, RID, int64_t, int64_t, const Vector2 &, int64_t, const Color &);
|
||||
virtual void font_draw_glyph(const RID &p_font, const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color = Color(1, 1, 1), float p_oversampling = 0.0) const override;
|
||||
virtual void font_draw_glyph_outline(const RID &p_font, const RID &p_canvas, int64_t p_size, int64_t p_outline_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color = Color(1, 1, 1), float p_oversampling = 0.0) const override;
|
||||
GDVIRTUAL7C_REQUIRED(_font_draw_glyph, RID, RID, int64_t, const Vector2 &, int64_t, const Color &, float);
|
||||
GDVIRTUAL8C_REQUIRED(_font_draw_glyph_outline, RID, RID, int64_t, int64_t, const Vector2 &, int64_t, const Color &, float);
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL6C_COMPAT(_font_draw_glyph_bind_compat_104872, _font_draw_glyph, RID, RID, int64_t, const Vector2 &, int64_t, const Color &);
|
||||
GDVIRTUAL7C_COMPAT(_font_draw_glyph_outline_bind_compat_104872, _font_draw_glyph_outline, RID, RID, int64_t, int64_t, const Vector2 &, int64_t, const Color &);
|
||||
#endif
|
||||
|
||||
virtual bool font_is_language_supported(const RID &p_font_rid, const String &p_language) const override;
|
||||
virtual void font_set_language_support_override(const RID &p_font_rid, const String &p_language, bool p_supported) override;
|
||||
@@ -381,10 +391,16 @@ public:
|
||||
GDVIRTUAL1RC(Dictionary, _font_supported_feature_list, RID);
|
||||
GDVIRTUAL1RC(Dictionary, _font_supported_variation_list, RID);
|
||||
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
virtual double font_get_global_oversampling() const override;
|
||||
virtual void font_set_global_oversampling(double p_oversampling) override;
|
||||
GDVIRTUAL0RC(double, _font_get_global_oversampling);
|
||||
GDVIRTUAL1(_font_set_global_oversampling, double);
|
||||
#endif
|
||||
virtual void reference_oversampling_level(double p_oversampling) override;
|
||||
virtual void unreference_oversampling_level(double p_oversampling) override;
|
||||
GDVIRTUAL1(_reference_oversampling_level, double);
|
||||
GDVIRTUAL1(_unreference_oversampling_level, double);
|
||||
|
||||
virtual Vector2 get_hex_code_box_size(int64_t p_size, int64_t p_index) const override;
|
||||
virtual void draw_hex_code_box(const RID &p_canvas, int64_t p_size, const Vector2 &p_pos, int64_t p_index, const Color &p_color) const override;
|
||||
@@ -563,10 +579,14 @@ public:
|
||||
GDVIRTUAL2RC(int64_t, _shaped_text_hit_test_grapheme, RID, double);
|
||||
GDVIRTUAL2RC(int64_t, _shaped_text_hit_test_position, RID, double);
|
||||
|
||||
virtual void shaped_text_draw(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l = -1.0, double p_clip_r = -1.0, const Color &p_color = Color(1, 1, 1)) const override;
|
||||
virtual void shaped_text_draw_outline(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l = -1.0, double p_clip_r = -1.0, int64_t p_outline_size = 1, const Color &p_color = Color(1, 1, 1)) const override;
|
||||
GDVIRTUAL6C(_shaped_text_draw, RID, RID, const Vector2 &, double, double, const Color &);
|
||||
GDVIRTUAL7C(_shaped_text_draw_outline, RID, RID, const Vector2 &, double, double, int64_t, const Color &);
|
||||
virtual void shaped_text_draw(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l = -1.0, double p_clip_r = -1.0, const Color &p_color = Color(1, 1, 1), float p_oversampling = 0.0) const override;
|
||||
virtual void shaped_text_draw_outline(const RID &p_shaped, const RID &p_canvas, const Vector2 &p_pos, double p_clip_l = -1.0, double p_clip_r = -1.0, int64_t p_outline_size = 1, const Color &p_color = Color(1, 1, 1), float p_oversampling = 0.0) const override;
|
||||
GDVIRTUAL7C(_shaped_text_draw, RID, RID, const Vector2 &, double, double, const Color &, float);
|
||||
GDVIRTUAL8C(_shaped_text_draw_outline, RID, RID, const Vector2 &, double, double, int64_t, const Color &, float);
|
||||
#ifndef DISABLE_DEPRECATED
|
||||
GDVIRTUAL6C_COMPAT(_shaped_text_draw_bind_compat_104872, _shaped_text_draw, RID, RID, const Vector2 &, double, double, const Color &);
|
||||
GDVIRTUAL7C_COMPAT(_shaped_text_draw_outline_bind_compat_104872, _shaped_text_draw_outline, RID, RID, const Vector2 &, double, double, int64_t, const Color &);
|
||||
#endif
|
||||
|
||||
virtual Vector2 shaped_text_get_grapheme_bounds(const RID &p_shaped, int64_t p_pos) const override;
|
||||
virtual int64_t shaped_text_next_grapheme_pos(const RID &p_shaped, int64_t p_pos) const override;
|
||||
|
||||
Reference in New Issue
Block a user