summaryrefslogtreecommitdiff
path: root/modules/text_server_fb/dynamic_font_fb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/text_server_fb/dynamic_font_fb.cpp')
-rw-r--r--modules/text_server_fb/dynamic_font_fb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/text_server_fb/dynamic_font_fb.cpp b/modules/text_server_fb/dynamic_font_fb.cpp
index 406f60b6f5..a261ba8f37 100644
--- a/modules/text_server_fb/dynamic_font_fb.cpp
+++ b/modules/text_server_fb/dynamic_font_fb.cpp
@@ -65,7 +65,7 @@ DynamicFontDataFallback::DataAtSize *DynamicFontDataFallback::get_data_for_size(
ERR_FAIL_V_MSG(nullptr, "Cannot open font file '" + font_path + "'.");
}
- uint64_t len = f->get_len();
+ uint64_t len = f->get_length();
font_mem_cache.resize(len);
f->get_buffer(font_mem_cache.ptrw(), len);
font_mem = font_mem_cache.ptr();