freetype-commit
[Top][All Lists]
Advanced

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

[Git][freetype/freetype][1100-sdf-precision-improvement] * include/freet


From: Anuj Verma (@anujv)
Subject: [Git][freetype/freetype][1100-sdf-precision-improvement] * include/freetype/freetype.h (FT_RENDER_MODE_SDF): Improve documentation.
Date: Sat, 16 Oct 2021 05:01:11 +0000

Anuj Verma pushed to branch 1100-sdf-precision-improvement at FreeType / FreeType

Commits:

1 changed file:

Changes:

  • include/freetype/freetype.h
    ... ... @@ -3399,6 +3399,11 @@ FT_BEGIN_HEADER
    3399 3399
        *      output due to limited availability of pixel grid to store distance
    
    3400 3400
        *      information.
    
    3401 3401
        *
    
    3402
    +   *   4. Since the output buffer is normalized, precision at smaller spread
    
    3403
    +   *      will be greater than precision at larger spread values, because the
    
    3404
    +   *      output range of [0 .. 255] will be mapped to a smaller sdf range.
    
    3405
    +   *      A spread of 2 should be sufficient in most cases.
    
    3406
    +   *
    
    3402 3407
        *   Point (1) and (2) can be avoided by using `bsdf` and overall it is
    
    3403 3408
        *   more stable than the `sdf` rasterizer.
    
    3404 3409
        *
    


  • reply via email to

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