From ee0f8213bee205fccc37b91ff67686097ecb8363 Mon Sep 17 00:00:00 2001 From: Anuj Verma Date: Sat, 16 Oct 2021 10:30:06 +0530 Subject: [PATCH] * include/freetype/freetype.h (FT_RENDER_MODE_SDF): Improve documentation. * include/freetype/freetype.h (FT_RENDER_MODE_SDF): Added one more point to the limitations of sdf. --- include/freetype/freetype.h | 5 +++++ 1 file changed, 5 insertions(+) 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. *