Skip to content

Commit

Permalink
Merge pull request #2004 from iainmerrick/kerning_fix
Browse files Browse the repository at this point in the history
Fix kerning pairs (#2003)
  • Loading branch information
cadaver authored Jul 3, 2017
2 parents 3c9881f + 2ab978e commit 5475c48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Source/Urho3D/UI/FontFaceFreeType.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,8 @@ bool FontFaceFreeType::Load(const unsigned char* fontData, unsigned fontDataSize
unsigned rightIndex = deserializer.ReadUShort();
short amount = FixedToFloat(deserializer.ReadShort());

unsigned leftCharCode = leftIndex < numGlyphs ? charCodes[leftIndex] : 0;
unsigned rightCharCode = rightIndex < numGlyphs ? charCodes[rightIndex] : 0;
unsigned leftCharCode = leftIndex < numGlyphs ? charCodes[leftIndex + 1] : 0;
unsigned rightCharCode = rightIndex < numGlyphs ? charCodes[rightIndex + 1] : 0;
if (leftCharCode != 0 && rightCharCode != 0)
{
unsigned value = (leftCharCode << 16) + rightCharCode;
Expand Down

0 comments on commit 5475c48

Please sign in to comment.