diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:49:39 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-07-07 04:49:39 +0000 |
commit | 0c64a378a5c6de8db08fa3403ead69737a6cab20 (patch) | |
tree | 58ea1166c442f242dade9568f9103dc78676ecbb /src/sdf/ftsdfcommon.h | |
parent | d02a90ba04cbd5963b26e76bf9107fd166f94f80 (diff) | |
parent | 61c2a5111a20c36749145d9670b10bf1cbcc9398 (diff) | |
download | freetype-d3cb51acfe4d1e386797b245756da5d3da0af3eb.tar.gz |
Snap for 10453563 from 61c2a5111a20c36749145d9670b10bf1cbcc9398 to mainline-ipsec-releaseaml_ips_341611000aml_ips_341510000aml_ips_340914280aml_ips_340914200aml_ips_340914000
Change-Id: Ide08ed9d8cdabe174805d1e121b392636eb55a12
Diffstat (limited to 'src/sdf/ftsdfcommon.h')
-rw-r--r-- | src/sdf/ftsdfcommon.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/sdf/ftsdfcommon.h b/src/sdf/ftsdfcommon.h index 44f6bba53..60ca9773e 100644 --- a/src/sdf/ftsdfcommon.h +++ b/src/sdf/ftsdfcommon.h @@ -4,7 +4,7 @@ * * Auxiliary data for Signed Distance Field support (specification). * - * Copyright (C) 2020-2021 by + * Copyright (C) 2020-2023 by * David Turner, Robert Wilhelm, and Werner Lemberg. * * Written by Anuj Verma. @@ -48,6 +48,8 @@ FT_BEGIN_HEADER #define MIN_SPREAD 2 /* maximum spread supported by the renderer */ #define MAX_SPREAD 32 + /* pixel size in 26.6 */ +#define ONE_PIXEL ( 1 << 6 ) /************************************************************************** @@ -113,8 +115,8 @@ FT_BEGIN_HEADER typedef FT_Vector FT_26D6_Vec; /* with 26.6 fixed-point components */ typedef FT_Vector FT_16D16_Vec; /* with 16.16 fixed-point components */ - typedef FT_Fixed FT_16D16; /* 16.16 fixed-point representation */ - typedef FT_Fixed FT_26D6; /* 26.6 fixed-point representation */ + typedef FT_Int32 FT_16D16; /* 16.16 fixed-point representation */ + typedef FT_Int32 FT_26D6; /* 26.6 fixed-point representation */ typedef FT_Byte FT_SDFFormat; /* format to represent SDF data */ typedef FT_BBox FT_CBox; /* control box of a curve */ |