Преглед на файлове

Fixed invalid offset for certain characters when rendering text

BearishSun преди 9 години
родител
ревизия
8587f277ce
променени са 1 файла, в които са добавени 0 реда и са изтрити 4 реда
  1. 0 4
      Source/BansheeCore/Source/BsTextData.cpp

+ 0 - 4
Source/BansheeCore/Source/BsTextData.cpp

@@ -242,10 +242,6 @@ namespace BansheeEngine
 			}
 			}
 			else
 			else
 			{
 			{
-				const CHAR_DESC& firstChar = mTextData->getChar(word.getCharsStart());
-				if (firstChar.xOffset < 0)
-					penX += -firstChar.xOffset; // Offset characters so that they start at 0
-
 				UINT32 kerning = 0;
 				UINT32 kerning = 0;
 				for(UINT32 j = word.getCharsStart(); j <= word.getCharsEnd(); j++)
 				for(UINT32 j = word.getCharsStart(); j <= word.getCharsEnd(); j++)
 				{
 				{