freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[freetype2] master 0eca6ead8: Documentation improvement for `FT_Bitmap`.


From: Werner Lemberg
Subject: [freetype2] master 0eca6ead8: Documentation improvement for `FT_Bitmap`.
Date: Thu, 16 Feb 2023 00:36:58 -0500 (EST)

branch: master
commit 0eca6ead82b4e6f739b57e49a3029d0b31fd1652
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    Documentation improvement for `FT_Bitmap`.
    
    Fixes #1205.
---
 include/freetype/ftimage.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h
index 2e8e6734c..738b515ed 100644
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -19,7 +19,7 @@
   /**************************************************************************
    *
    * Note: A 'raster' is simply a scan-line converter, used to render
-   *       FT_Outlines into FT_Bitmaps.
+   *       `FT_Outline`s into `FT_Bitmap`s.
    *
    */
 
@@ -256,6 +256,12 @@ FT_BEGIN_HEADER
    *   palette ::
    *     A typeless pointer to the bitmap palette; this field is intended for
    *     paletted pixel modes.  Not used currently.
+   *
+   * @note:
+   *   `width` and `rows` refer to the *physical* size of the bitmap, not the
+   *   *logical* one.  For example, if @FT_Pixel_Mode is set to
+   *   `FT_PIXEL_MODE_LCD`, the logical width is a just a third of the
+   *   physical one.
    */
   typedef struct  FT_Bitmap_
   {



reply via email to

[Prev in Thread] Current Thread [Next in Thread]