Anuj Verma pushed to branch 1100-sdf-precision-improvement at FreeType / FreeType
Commits:
-
ee0f8213
by Anuj Verma at 2021-10-16T10:30:06+05:30
1 changed file:
Changes:
... | ... | @@ -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 |
*
|