diff options
author | Anuj Verma <anujv@iitbhilai.ac.in> | 2021-10-16 10:30:06 +0530 |
---|---|---|
committer | Anuj Verma <anujv@iitbhilai.ac.in> | 2021-10-16 10:30:06 +0530 |
commit | ee0f8213bee205fccc37b91ff67686097ecb8363 (patch) | |
tree | ae96e51fc5436b2fecc727617efd795d5d4eaf1f /include/freetype/freetype.h | |
parent | 31c0a833d670da95733109267d0a2a69a9a27bc4 (diff) | |
download | freetype2-1100-sdf-precision-improvement.tar.gz |
* include/freetype/freetype.h (FT_RENDER_MODE_SDF): Improve documentation.1100-sdf-precision-improvement
* include/freetype/freetype.h (FT_RENDER_MODE_SDF): Added one more point
to the limitations of sdf.
Diffstat (limited to 'include/freetype/freetype.h')
-rw-r--r-- | include/freetype/freetype.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/freetype/freetype.h b/include/freetype/freetype.h index d34c48cb9..bc3073e1e 100644 --- a/include/freetype/freetype.h +++ b/include/freetype/freetype.h @@ -3399,6 +3399,11 @@ FT_BEGIN_HEADER * output due to limited availability of pixel grid to store distance * information. * + * 4. Since the output buffer is normalized, precision at smaller spread + * will be greater than precision at larger spread values, because the + * output range of [0 .. 255] will be mapped to a smaller sdf range. + * A spread of 2 should be sufficient in most cases. + * * Point (1) and (2) can be avoided by using `bsdf` and overall it is * more stable than the `sdf` rasterizer. * |