* 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.
This commit is contained in:
Anuj Verma 2021-10-16 10:30:06 +05:30
parent 31c0a833d6
commit ee0f8213be
1 changed files with 5 additions and 0 deletions

View File

@ -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.
*