freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 4f00846dd: * include/freetype/ftimage.h (FT_Bitmap):


From: Werner Lemberg
Subject: [freetype2] master 4f00846dd: * include/freetype/ftimage.h (FT_Bitmap): Describe empty bitmap.
Date: Sun, 25 Aug 2024 14:13:24 -0400 (EDT)

branch: master
commit 4f00846dde0a9d97e28b654665259ec3dc12d0d7
Author: Alexei Podtelezhnikov <apodtele@gmail.com>
Commit: Alexei Podtelezhnikov <apodtele@gmail.com>

    * include/freetype/ftimage.h (FT_Bitmap): Describe empty bitmap.
---
 include/freetype/ftimage.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/freetype/ftimage.h b/include/freetype/ftimage.h
index 2b4b4ac60..33070fb12 100644
--- a/include/freetype/ftimage.h
+++ b/include/freetype/ftimage.h
@@ -267,6 +267,10 @@ FT_BEGIN_HEADER
    *   *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.
+   *
+   *   An empty bitmap with a NULL `buffer` is valid, with `rows` and/or
+   *   `pitch` also set to 0.  Such bitmaps might be produced while rendering
+   *   empty or degenerate outlines.
    */
   typedef struct  FT_Bitmap_
   {



reply via email to

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