Fixed: Zero width/height letters (ie space) should not be included in atlas

--HG--
branch : develop
feature/pipeline-tools
Nimetu 6 years ago
parent 2877ece3c6
commit 8e53cd87e5

@ -516,6 +516,9 @@ CTextureFont::SLetterInfo* CTextureFont::getLetterInfo (SLetterKey& k, bool rend
// letter not found (=NULL) or render not requested
if (!letter || !render) return letter;
// nothing to render, ie space char
if (letter->CharWidth == 0 || letter->CharHeight == 0) return letter;
if (!letter->glyph || letter->glyph->CacheVersion != _CacheVersion)
{
// render glyph

Loading…
Cancel
Save