diff options
| author | YAMAMOTO Mitsuharu | 2005-11-13 05:46:17 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-11-13 05:46:17 +0000 |
| commit | 26d2699b2204785b9955d0b0fa685674ac6cc501 (patch) | |
| tree | 380e8437b9552b1f0ce539c5469d160ddbbe08e1 /src | |
| parent | 007af086d02a6ffa842b67b800a78a008d11c4ab (diff) | |
| download | emacs-26d2699b2204785b9955d0b0fa685674ac6cc501.tar.gz emacs-26d2699b2204785b9955d0b0fa685674ac6cc501.zip | |
(USE_CG_TEXT_DRAWING): New define.
(struct MacFontStruct) [USE_CG_TEXT_DRAWING]: New members cg_font
and cg_glyphs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macgui.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/macgui.h b/src/macgui.h index 6e2adb092c6..40244dbc7c6 100644 --- a/src/macgui.h +++ b/src/macgui.h | |||
| @@ -92,6 +92,12 @@ typedef GWorldPtr Pixmap; | |||
| 92 | #endif | 92 | #endif |
| 93 | 93 | ||
| 94 | 94 | ||
| 95 | #ifndef USE_CG_TEXT_DRAWING | ||
| 96 | #if USE_ATSUI && MAC_OS_X_VERSION_MAX_ALLOWED >= 1030 | ||
| 97 | #define USE_CG_TEXT_DRAWING 1 | ||
| 98 | #endif | ||
| 99 | #endif | ||
| 100 | |||
| 95 | /* Emulate XCharStruct. */ | 101 | /* Emulate XCharStruct. */ |
| 96 | typedef struct _XCharStruct | 102 | typedef struct _XCharStruct |
| 97 | { | 103 | { |
| @@ -127,6 +133,10 @@ struct MacFontStruct { | |||
| 127 | #endif | 133 | #endif |
| 128 | #if USE_ATSUI | 134 | #if USE_ATSUI |
| 129 | ATSUStyle mac_style; /* NULL if QuickDraw Text is used */ | 135 | ATSUStyle mac_style; /* NULL if QuickDraw Text is used */ |
| 136 | #if USE_CG_TEXT_DRAWING | ||
| 137 | CGFontRef cg_font; /* NULL if ATSUI text drawing is used */ | ||
| 138 | CGGlyph *cg_glyphs; /* Likewise */ | ||
| 139 | #endif | ||
| 130 | #endif | 140 | #endif |
| 131 | 141 | ||
| 132 | /* from Xlib.h */ | 142 | /* from Xlib.h */ |