shithub: freetype+ttf2subf

Download patch

ref: f434e299067c8d7ae43fbb6e021b283c3f2303c8
parent: ebaeb6425e15638cfce1db80286dfac4c6987621
author: Werner Lemberg <[email protected]>
date: Sat Aug 21 05:01:51 EDT 2010

In the documentation, explain what `padding' means.

git/fs: mount .git/fs: mount/attach disallowed
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -268,8 +268,20 @@
   /*                    flow.  In all cases, the pitch is an offset to add */
   /*                    to a bitmap pointer in order to go down one row.   */
   /*                                                                       */
+  /*                    Note that `padding' means the alignment of a       */
+  /*                    bitmap to a byte border, and FreeType functions    */
+  /*                    normally align to the smallest possible integer    */
+  /*                    value.                                             */
+  /*                                                                       */
   /*                    For the B/W rasterizer, `pitch' is always an even  */
   /*                    number.                                            */
+  /*                                                                       */
+  /*                    To change the pitch of a bitmap (say, to make it a */
+  /*                    multiple of 4), use @FT_Bitmap_Convert.            */
+  /*                    Alternatively, you might use callback functions to */
+  /*                    directly render to the application's surface; see  */
+  /*                    the file `example2.cpp' in the tutorial for a      */
+  /*                    demonstration.                                     */
   /*                                                                       */
   /*    buffer       :: A typeless pointer to the bitmap buffer.  This     */
   /*                    value should be aligned on 32-bit boundaries in    */