freetype-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [freetype2] anuj-distance-field 145c3c6 4/4: [sdf] Make squared dist


From: Werner LEMBERG
Subject: Re: [freetype2] anuj-distance-field 145c3c6 4/4: [sdf] Make squared distances toggleable.
Date: Wed, 01 Jul 2020 14:40:30 +0200 (CEST)

> +  /* If it is defined to 1 then the rasterizer will use squared distances */
> +  /* for computation. It can greatly improve the performance but there is */
> +  /* a chance of overflow and artifacts. You can safely use is upto a     */
> +  /* pixel size of 128.                                                   */
> +  #ifndef USE_SQUARED_DISTANCES
> +    #define USE_SQUARED_DISTANCES 0
> +  #endif

Nice idea, thanks!

Formatting nit: Please ensure that '#' is always on the first line,
so:

  #ifndef USE_SQUARED_DISTANCES
  #  define USE_SQUARED_DISTANCES 0
  #endif


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]