Commit 6bac248f7271eecc275682172271d80641bab9f2

sammy 2008-04-17T13:36:05

* Fix a bug in FTFont::DoRender() introduced by my FTSimpleLayout merge that was causing excessive spacing between characters.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/FTFont.cpp b/src/FTFont.cpp
index 671d064..e5e3d76 100644
--- a/src/FTFont.cpp
+++ b/src/FTFont.cpp
@@ -267,7 +267,7 @@ void FTFont::DoRender(const unsigned int chr,
     if(CheckGlyph(chr))
     {
         FTPoint kernAdvance = glyphList->Render(chr, nextChr, origin);
-        origin += kernAdvance;
+        origin = kernAdvance;
     }
 }