diff options
| author | YAMAMOTO Mitsuharu | 2005-10-01 11:09:44 +0000 |
|---|---|---|
| committer | YAMAMOTO Mitsuharu | 2005-10-01 11:09:44 +0000 |
| commit | 04904a238eda88318e50c3d9b121ff492fb0cb72 (patch) | |
| tree | 7fb3acdc08f63f2e7ad9ec9b4db318a02237ace9 /src | |
| parent | aa27f1e7120cb54f56f3c2387ef634a0335ac3da (diff) | |
| download | emacs-04904a238eda88318e50c3d9b121ff492fb0cb72.tar.gz emacs-04904a238eda88318e50c3d9b121ff492fb0cb72.zip | |
(struct _XCharStruct): New member valid_p.
(STORE_XCHARSTRUCT): Set valid_p.
(struct MacFontStruct) [USE_ATSUI]: New member mac_style.
Diffstat (limited to 'src')
| -rw-r--r-- | src/macgui.h | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/macgui.h b/src/macgui.h index fc777de03ba..378dbcd9e5c 100644 --- a/src/macgui.h +++ b/src/macgui.h | |||
| @@ -103,6 +103,7 @@ typedef struct _XCharStruct | |||
| 103 | #if 0 | 103 | #if 0 |
| 104 | unsigned short attributes; /* per char flags (not predefined) */ | 104 | unsigned short attributes; /* per char flags (not predefined) */ |
| 105 | #endif | 105 | #endif |
| 106 | unsigned valid_p : 1; | ||
| 106 | } XCharStruct; | 107 | } XCharStruct; |
| 107 | 108 | ||
| 108 | #define STORE_XCHARSTRUCT(xcs, w, bds) \ | 109 | #define STORE_XCHARSTRUCT(xcs, w, bds) \ |
| @@ -110,7 +111,8 @@ typedef struct _XCharStruct | |||
| 110 | (xcs).lbearing = (bds).left, \ | 111 | (xcs).lbearing = (bds).left, \ |
| 111 | (xcs).rbearing = (bds).right, \ | 112 | (xcs).rbearing = (bds).right, \ |
| 112 | (xcs).ascent = -(bds).top, \ | 113 | (xcs).ascent = -(bds).top, \ |
| 113 | (xcs).descent = (bds).bottom) | 114 | (xcs).descent = (bds).bottom, \ |
| 115 | (xcs).valid_p = 1) | ||
| 114 | 116 | ||
| 115 | struct MacFontStruct { | 117 | struct MacFontStruct { |
| 116 | char *full_name; | 118 | char *full_name; |
| @@ -123,19 +125,9 @@ struct MacFontStruct { | |||
| 123 | #else | 125 | #else |
| 124 | short mac_scriptcode; /* Mac OS script code for font used */ | 126 | short mac_scriptcode; /* Mac OS script code for font used */ |
| 125 | #endif | 127 | #endif |
| 126 | 128 | #if USE_ATSUI | |
| 127 | #if 0 | 129 | ATSUStyle mac_style; /* NULL if QuickDraw Text is used */ |
| 128 | SInt16 mFontNum; /* font number of font used in this window */ | 130 | #endif |
| 129 | short mScriptCode; /* Mac OS script code for font used */ | ||
| 130 | int mFontSize; /* size of font */ | ||
| 131 | Style mFontFace; /* plain, bold, italics, etc. */ | ||
| 132 | int mHeight; /* height of one line of text in pixels */ | ||
| 133 | int mWidth; /* width of one character in pixels */ | ||
| 134 | int mAscent; | ||
| 135 | int mDescent; | ||
| 136 | int mLeading; | ||
| 137 | char mTwoByte; /* true for two-byte font */ | ||
| 138 | #endif /* 0 */ | ||
| 139 | 131 | ||
| 140 | /* from Xlib.h */ | 132 | /* from Xlib.h */ |
| 141 | #if 0 | 133 | #if 0 |