freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master a1ca70102: [sfnt] Correct FT_ColorStopIterator docume


From: Werner Lemberg
Subject: [freetype2] master a1ca70102: [sfnt] Correct FT_ColorStopIterator documentation.
Date: Mon, 4 Apr 2022 17:01:16 -0400 (EDT)

branch: master
commit a1ca70102373fec0b98ac525885b34771c2604aa
Author: Ben Wagner <bungeman@chromium.org>
Commit: Ben Wagner <bungeman@chromium.org>

    [sfnt] Correct FT_ColorStopIterator documentation.
    
    * include/freetype/ftcolor.h (FT_ColorStopIterator): the user should not
     set `p` to NULL before calling `FT_Get_Colorline_Stops`. `p` and
    `num_color_stops` are set by `FT_Get_Paint`. `p` and
    `current_color_stop` are updated by `FT_Get_Colorline_Stops`.
---
 include/freetype/ftcolor.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/freetype/ftcolor.h b/include/freetype/ftcolor.h
index 777fa8b8c..3edaee4ec 100644
--- a/include/freetype/ftcolor.h
+++ b/include/freetype/ftcolor.h
@@ -528,14 +528,14 @@ FT_BEGIN_HEADER
    * @fields:
    *   num_color_stops ::
    *     The number of color stops for the requested glyph index.  Set by
-   *     @FT_Get_Colorline_Stops.
+   *     @FT_Get_Paint.
    *
    *   current_color_stop ::
    *     The current color stop.  Set by @FT_Get_Colorline_Stops.
    *
    *   p ::
-   *     An opaque pointer into 'COLR' table data.  The caller must set this
-   *     to `NULL` before the first call of @FT_Get_Colorline_Stops.
+   *     An opaque pointer into 'COLR' table data.  Set by @FT_Get_Paint.
+   *     Updated by @FT_Get_Colorline_Stops.
    *
    * @since:
    *   2.11 -- **currently experimental only!**  There might be changes



reply via email to

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