freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 24db55ecb: Various minor doc fixes.


From: Werner Lemberg
Subject: [freetype2] master 24db55ecb: Various minor doc fixes.
Date: Mon, 7 Feb 2022 01:02:25 -0500 (EST)

branch: master
commit 24db55ecb81ca726b9c7e12e37d54a986c84f014
Author: Werner Lemberg <wl@gnu.org>
Commit: Werner Lemberg <wl@gnu.org>

    Various minor doc fixes.
---
 include/freetype/ftglyph.h | 8 ++++----
 src/truetype/ttgload.c     | 3 ++-
 2 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/include/freetype/ftglyph.h b/include/freetype/ftglyph.h
index b6071369b..6b77bd3d2 100644
--- a/include/freetype/ftglyph.h
+++ b/include/freetype/ftglyph.h
@@ -584,9 +584,9 @@ FT_BEGIN_HEADER
    *   The glyph image is translated with the `origin` vector before
    *   rendering.
    *
-   *   The first parameter is a pointer to an @FT_Glyph handle, that will be
+   *   The first parameter is a pointer to an @FT_Glyph handle that will be
    *   _replaced_ by this function (with newly allocated data).  Typically,
-   *   you would use (omitting error handling):
+   *   you would do something like the following (omitting error handling).
    *
    *   ```
    *     FT_Glyph        glyph;
@@ -603,7 +603,7 @@ FT_BEGIN_HEADER
    *     if ( glyph->format != FT_GLYPH_FORMAT_BITMAP )
    *     {
    *       error = FT_Glyph_To_Bitmap( &glyph, FT_RENDER_MODE_NORMAL,
-   *                                     0, 1 );
+   *                                   0, 1 );
    *       if ( error ) // `glyph' unchanged
    *         ...
    *     }
@@ -618,7 +618,7 @@ FT_BEGIN_HEADER
    *     FT_Done_Glyph( glyph );
    *   ```
    *
-   *   Here is another example, again without error handling:
+   *   Here is another example, again without error handling.
    *
    *   ```
    *     FT_Glyph  glyphs[MAX_GLYPHS]
diff --git a/src/truetype/ttgload.c b/src/truetype/ttgload.c
index 33d743bd3..b19f7a283 100644
--- a/src/truetype/ttgload.c
+++ b/src/truetype/ttgload.c
@@ -2787,11 +2787,12 @@
    *   A function used to load a single glyph within a given glyph slot,
    *   for a given size.
    *
-   * @Input:
+   * @InOut:
    *   glyph ::
    *     A handle to a target slot object where the glyph
    *     will be loaded.
    *
+   * @Input:
    *   size ::
    *     A handle to the source face size at which the glyph
    *     must be scaled/loaded.



reply via email to

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