Merge pull request #79736 from timothyqiu/bit

Fix typo in ResourceImporterImageFont
This commit is contained in:
Yuri Sizov 2023-07-25 21:51:24 +02:00
commit b495811108

View file

@ -111,7 +111,7 @@ Error ResourceImporterImageFont::import(const String &p_source_file, const Strin
int chr_width = chr_cell_width - char_margin.position.x - char_margin.size.x; int chr_width = chr_cell_width - char_margin.position.x - char_margin.size.x;
int chr_height = chr_cell_height - char_margin.position.y - char_margin.size.y; int chr_height = chr_cell_height - char_margin.position.y - char_margin.size.y;
ERR_FAIL_COND_V_MSG(chr_width <= 0 || chr_height <= 0, ERR_FILE_CANT_READ, TTR("Character margin too bit.")); ERR_FAIL_COND_V_MSG(chr_width <= 0 || chr_height <= 0, ERR_FILE_CANT_READ, TTR("Character margin too big."));
Ref<FontFile> font; Ref<FontFile> font;
font.instantiate(); font.instantiate();