Alexei Podtelezhnikov pushed to branch master at FreeType / FreeType
Commits:
-
e2bcca40
by Alexei Podtelezhnikov (Алексей Подтележников) at 2024-04-22T22:43:41-04:00
1 changed file:
Changes:
... | ... | @@ -827,9 +827,9 @@ FT_BEGIN_HEADER |
827 | 827 | * This property of the 'sdf' and 'bsdf' renderers defines how the signed
|
828 | 828 | * distance field (SDF) is represented in the output bitmap. The output
|
829 | 829 | * values are calculated as follows, '128 * ( SDF / spread + 1 )', with
|
830 | - * the result truncated to the 8-bit range [0..255]. Therefore, 'spread'
|
|
830 | + * the result clamped to the 8-bit range [0..255]. Therefore, 'spread'
|
|
831 | 831 | * is also the maximum euclidean distance from the edge after which the
|
832 | - * values are truncated. The spread is specified in pixels with the
|
|
832 | + * values are clamped. The spread is specified in pixels with the
|
|
833 | 833 | * default value of 8.
|
834 | 834 | *
|
835 | 835 | * @example:
|
... | ... | @@ -838,7 +838,7 @@ FT_BEGIN_HEADER |
838 | 838 | *
|
839 | 839 | * ```
|
840 | 840 | * FT_Library library;
|
841 | - * FT_UInt spread = 2;
|
|
841 | + * FT_Int spread = 2;
|
|
842 | 842 | *
|
843 | 843 | *
|
844 | 844 | * FT_Init_FreeType( &library );
|