Commit 632c866d88a2fcdc36e41629537b114bd3f4119f

sammy 2008-06-08T15:55:19

* Add a comment to FTBufferFont to not forget about bugs in it.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/FTFont/FTBufferFont.cpp b/src/FTFont/FTBufferFont.cpp
index 73bed69..f2cb9a1 100644
--- a/src/FTFont/FTBufferFont.cpp
+++ b/src/FTFont/FTBufferFont.cpp
@@ -248,6 +248,7 @@ inline FTPoint FTBufferFontImpl::RenderI(const T* string, const int len,
         {
             free(stringCache[cacheIndex]);
         }
+        // FIXME: only the first N bytes are copied; we want the first N chars.
         stringCache[cacheIndex] = StringCopy(string, len);
         bboxCache[cacheIndex] = BBox(string, len, FTPoint(), spacing);
     }