diff options
author | Werner Lemberg <wl@gnu.org> | 2018-03-03 08:24:31 +0100 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2018-03-03 08:24:31 +0100 |
commit | 54b0558a70e135b8f84fdcedbc74d3b2d5fd58df (patch) | |
tree | 7566a1dd44d5f5f8aee32c87c686602f17be2a32 | |
parent | a01f3ef0a0f00a26edf6e434cb8d902f14e524b8 (diff) |
example1.c: Add some comments.
-rw-r--r-- | freetype2/docs/tutorial/example1.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/freetype2/docs/tutorial/example1.c b/freetype2/docs/tutorial/example1.c index 8821595..f801411 100644 --- a/freetype2/docs/tutorial/example1.c +++ b/freetype2/docs/tutorial/example1.c @@ -32,6 +32,9 @@ draw_bitmap( FT_Bitmap* bitmap, FT_Int y_max = y + bitmap->rows; + /* for simplicity, we assume that `bitmap->pixel_mode' */ + /* is `FT_PIXEL_MODE_GRAY' (i.e., not a bitmap font) */ + for ( i = x, p = 0; i < x_max; i++, p++ ) { for ( j = y, q = 0; j < y_max; j++, q++ ) @@ -106,6 +109,9 @@ main( int argc, 100, 0 ); /* set character size */ /* error handling omitted */ + /* cmap selection omitted; */ + /* for simplicity we assume that the font contains a Unicode cmap */ + slot = face->glyph; /* set up matrix */ |