* 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.
1100-sdf-precision-improvement
Anuj Verma 3 years ago
parent 31c0a833d6
commit ee0f8213be
  1. 5
      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.
*

Loading…
Cancel
Save