freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master e2bcca40c: * include/freetype/ftdriver.h: s/truncated


From: Werner Lemberg
Subject: [freetype2] master e2bcca40c: * include/freetype/ftdriver.h: s/truncated/clamped/.
Date: Mon, 22 Apr 2024 22:45:25 -0400 (EDT)

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

    * include/freetype/ftdriver.h: s/truncated/clamped/.
---
 include/freetype/ftdriver.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/freetype/ftdriver.h b/include/freetype/ftdriver.h
index b91affc9b..4c83f7396 100644
--- a/include/freetype/ftdriver.h
+++ b/include/freetype/ftdriver.h
@@ -827,9 +827,9 @@ FT_BEGIN_HEADER
    *   This property of the 'sdf' and 'bsdf' renderers defines how the signed
    *   distance field (SDF) is represented in the output bitmap.  The output
    *   values are calculated as follows, '128 * ( SDF / spread + 1 )', with
-   *   the result truncated to the 8-bit range [0..255].  Therefore, 'spread'
+   *   the result clamped to the 8-bit range [0..255].  Therefore, 'spread'
    *   is also the maximum euclidean distance from the edge after which the
-   *   values are truncated.  The spread is specified in pixels with the
+   *   values are clamped.  The spread is specified in pixels with the
    *   default value of 8.
    *
    * @example:
@@ -838,7 +838,7 @@ FT_BEGIN_HEADER
    *
    *   ```
    *     FT_Library  library;
-   *     FT_UInt     spread = 2;
+   *     FT_Int      spread = 2;
    *
    *
    *     FT_Init_FreeType( &library );



reply via email to

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