diff options
author | Werner Lemberg <wl@gnu.org> | 2015-08-31 08:51:52 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2015-09-02 05:59:35 +0200 |
commit | 40103a3af089857e553f39c3b9ce61a9ee38dd59 (patch) | |
tree | 9edbf48e7f18e82e9e47f68a4ba909bce29ab72c /src/autofit/afglobal.h | |
parent | 87c81f0460fad3af38fbfebcd7ee03ca1a41e4b6 (diff) | |
download | freetype2-40103a3af089857e553f39c3b9ce61a9ee38dd59.tar.gz |
[autofit] Code clean-up.
* src/autofit/afglobal.h (AF_STYLE_MASK): New macro.
(AF_STYLE_UNASSIGNED): Use AF_STYLE_MASK for definition.
* src/autofit/afglobal.c (af_face_globals_compute_style_coverage):
Updated.
Diffstat (limited to 'src/autofit/afglobal.h')
-rw-r--r-- | src/autofit/afglobal.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/autofit/afglobal.h b/src/autofit/afglobal.h index 6cacd6961..284f6a037 100644 --- a/src/autofit/afglobal.h +++ b/src/autofit/afglobal.h @@ -72,8 +72,12 @@ FT_BEGIN_HEADER #endif /* default script for OpenType; ignored if HarfBuzz isn't used */ #define AF_SCRIPT_DEFAULT AF_SCRIPT_LATN - /* a bit mask indicating an uncovered glyph */ -#define AF_STYLE_UNASSIGNED 0x7FFF + + /* a bit mask for TA_DIGIT */ +#define AF_STYLE_MASK 0x7FFF + /* an uncovered glyph */ +#define AF_STYLE_UNASSIGNED AF_STYLE_MASK + /* if this flag is set, we have an ASCII digit */ #define AF_DIGIT 0x8000U |