freetype-commit
[Top][All Lists]
Advanced

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

[freetype2] master 4e079f635: Document the SDF spread further.


From: Werner Lemberg
Subject: [freetype2] master 4e079f635: Document the SDF spread further.
Date: Sat, 27 Apr 2024 20:09:13 -0400 (EDT)

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

    Document the SDF spread further.
---
 include/freetype/ftdriver.h | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/freetype/ftdriver.h b/include/freetype/ftdriver.h
index 4c83f7396..dd31626b0 100644
--- a/include/freetype/ftdriver.h
+++ b/include/freetype/ftdriver.h
@@ -830,7 +830,8 @@ FT_BEGIN_HEADER
    *   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 clamped.  The spread is specified in pixels with the
-   *   default value of 8.
+   *   default value of 8.  For accurate SDF texture mapping (interpolation),
+   *   the spread should be large enough to accommodate the target grid unit.
    *
    * @example:
    *   The following example code demonstrates how to set the SDF spread



reply via email to

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