You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Replace Array return types with TypedArray
This commit is contained in:
@@ -634,12 +634,12 @@ double TextServerExtension::font_get_oversampling(const RID &p_font_rid) const {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
Array TextServerExtension::font_get_size_cache_list(const RID &p_font_rid) const {
|
||||
Array ret;
|
||||
TypedArray<Vector2i> TextServerExtension::font_get_size_cache_list(const RID &p_font_rid) const {
|
||||
TypedArray<Vector2i> ret;
|
||||
if (GDVIRTUAL_CALL(font_get_size_cache_list, p_font_rid, ret)) {
|
||||
return ret;
|
||||
}
|
||||
return Array();
|
||||
return TypedArray<Vector2i>();
|
||||
}
|
||||
|
||||
void TextServerExtension::font_clear_size_cache(const RID &p_font_rid) {
|
||||
@@ -750,12 +750,12 @@ PackedInt32Array TextServerExtension::font_get_texture_offsets(const RID &p_font
|
||||
return PackedInt32Array();
|
||||
}
|
||||
|
||||
Array TextServerExtension::font_get_glyph_list(const RID &p_font_rid, const Vector2i &p_size) const {
|
||||
Array ret;
|
||||
PackedInt32Array TextServerExtension::font_get_glyph_list(const RID &p_font_rid, const Vector2i &p_size) const {
|
||||
PackedInt32Array ret;
|
||||
if (GDVIRTUAL_CALL(font_get_glyph_list, p_font_rid, p_size, ret)) {
|
||||
return ret;
|
||||
}
|
||||
return Array();
|
||||
return PackedInt32Array();
|
||||
}
|
||||
|
||||
void TextServerExtension::font_clear_glyphs(const RID &p_font_rid, const Vector2i &p_size) {
|
||||
@@ -850,12 +850,12 @@ Dictionary TextServerExtension::font_get_glyph_contours(const RID &p_font_rid, i
|
||||
return Dictionary();
|
||||
}
|
||||
|
||||
Array TextServerExtension::font_get_kerning_list(const RID &p_font_rid, int64_t p_size) const {
|
||||
Array ret;
|
||||
TypedArray<Vector2i> TextServerExtension::font_get_kerning_list(const RID &p_font_rid, int64_t p_size) const {
|
||||
TypedArray<Vector2i> ret;
|
||||
if (GDVIRTUAL_CALL(font_get_kerning_list, p_font_rid, p_size, ret)) {
|
||||
return ret;
|
||||
}
|
||||
return Array();
|
||||
return TypedArray<Vector2i>();
|
||||
}
|
||||
|
||||
void TextServerExtension::font_clear_kerning_map(const RID &p_font_rid, int64_t p_size) {
|
||||
|
||||
Reference in New Issue
Block a user