diff options
author | Ryan Schmidt <git@ryandesign.com> | 2023-10-24 01:42:38 -0500 |
---|---|---|
committer | Ryan Schmidt <git@ryandesign.com> | 2023-10-24 01:42:38 -0500 |
commit | 85f021b1f10b170179c8c5f29178fd80839ec00c (patch) | |
tree | a6d46fb6150f5bd0a00231be1ff6e0f0265eec2c | |
parent | f9de19ad745e587743914a37b1ee3ff804723a0a (diff) |
quartz-font: Fix transposed constants
kCTFontColorGlyphsTrait is available in Mac OS X 10.7 and later.
kCTFontTraitColorGlyphs is available in OS X 10.8 and later.
Fixes build failure on Mac OS X 10.7.
Closes #810
-rw-r--r-- | src/cairo-quartz-font.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cairo-quartz-font.c b/src/cairo-quartz-font.c index 0c868e026..621d3540c 100644 --- a/src/cairo-quartz-font.c +++ b/src/cairo-quartz-font.c @@ -77,10 +77,10 @@ static const CGFloat font_scale = 1.0; #if MAC_OS_X_VERSION_MIN_REQUIRED < 1080 #define FONT_ORIENTATION_HORIZONTAL kCTFontHorizontalOrientation -#define FONT_COLOR_GLYPHS kCTFontTraitColorGlyphs +#define FONT_COLOR_GLYPHS kCTFontColorGlyphsTrait #else #define FONT_ORIENTATION_HORIZONTAL kCTFontOrientationHorizontal -#define FONT_COLOR_GLYPHS kCTFontColorGlyphsTrait +#define FONT_COLOR_GLYPHS kCTFontTraitColorGlyphs #endif static void |