freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][master] Document the SDF spread further.


From: Alexei Podtelezhnikov (@apodtele)
Subject: [Git][freetype/freetype][master] Document the SDF spread further.
Date: Sun, 28 Apr 2024 00:09:02 +0000

Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType

Commits:

  • 4e079f63
    by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-04-27T20:07:36-04:00
    Document the SDF spread further.
    

1 changed file:

Changes:

  • include/freetype/ftdriver.h
    ... ... @@ -830,7 +830,8 @@ FT_BEGIN_HEADER
    830 830
        *   the result clamped to the 8-bit range [0..255].  Therefore, 'spread'
    
    831 831
        *   is also the maximum euclidean distance from the edge after which the
    
    832 832
        *   values are clamped.  The spread is specified in pixels with the
    
    833
    -   *   default value of 8.
    
    833
    +   *   default value of 8.  For accurate SDF texture mapping (interpolation),
    
    834
    +   *   the spread should be large enough to accommodate the target grid unit.
    
    834 835
        *
    
    835 836
        * @example:
    
    836 837
        *   The following example code demonstrates how to set the SDF spread
    


  • reply via email to

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