summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-08-17 14:44:47 +0200
committerGitHub <noreply@github.com>2019-08-17 14:44:47 +0200
commitf7e57df6a290388c18c34047490dd524a20316b0 (patch)
treedc06516ab438b65a025d5e5c0bab9cc97735e2ee /scene
parentde4aabe89b7b68677f145f21c956183bbc92f686 (diff)
parentd3153c28f0b82ca047a892f6dbcd9d5f9344e3d5 (diff)
Merge pull request #31431 from akien-mga/err_explain
Replace last occurrences of 'ERR_EXPLAIN' with 'ERR_FAIL_*_MSG'
Diffstat (limited to 'scene')
-rw-r--r--scene/resources/dynamic_font.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/scene/resources/dynamic_font.cpp b/scene/resources/dynamic_font.cpp
index df8d4a7fed..2364a4a8a3 100644
--- a/scene/resources/dynamic_font.cpp
+++ b/scene/resources/dynamic_font.cpp
@@ -193,14 +193,6 @@ Error DynamicFontAtSize::_load() {
ERR_FAIL_COND_V(error, ERR_FILE_CANT_OPEN);
- /*error = FT_Set_Char_Size(face,0,64*size,512,512);
-
- if ( error ) {
- FT_Done_FreeType( library );
- ERR_EXPLAIN(TTR("Invalid font size."));
- ERR_FAIL_COND_V( error, ERR_INVALID_PARAMETER );
- }*/
-
if (FT_HAS_COLOR(face)) {
int best_match = 0;
int diff = ABS(id.size - ((int64_t)face->available_sizes[0].width));