Changeset 3042
- Timestamp:
- 03/08/03 14:38:36 (6 years ago)
- Files:
-
- work/cvs2svn/src/mw32font.h (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
work/cvs2svn/src/mw32font.h
r3013 r3042 28 28 #define LOGFONT_FACENAME_MAX 32 29 29 30 /* encoding number */31 32 #define ENCODING_DIMENSION 033 #define ENCODING_BYTE1MSB1 134 #define ENCODING_BYTE2MSB1 235 #define ENCODING_BYTE2LSB1 336 #define ENCODING_SHIFTJIS 437 #define ENCODING_UNICODE 1638 39 30 typedef struct ccl_id_type 40 31 { … … 42 33 int size; 43 34 } ccl_id_type; 44 #define INITIALIZE_CCL_ID(x) (memset(&(x), 0, sizeof(struct ccl_id_type)))45 46 35 #define ENCODING_METHOD_P(obj) (!NILP(Fget((obj), Qccl_program))) 47 36 … … 59 48 60 49 typedef int FontCp; 50 typedef struct MW32Encoding MW32Encoding; 61 51 typedef struct MW32FontRequest MW32FontRequest; 62 52 typedef struct MW32LogicalFont MW32LogicalFont; … … 86 76 87 77 typedef enum 78 { 79 MW32_FID_WINDOWS_FONT, 80 MW32_FID_BDF_FONT 81 } font_id; 82 83 typedef enum 84 { 85 ENCODING_DIMENSION = 0, 86 ENCODING_BYTE1MSB1 = 1, 87 ENCODING_BYTE2MSB1 = 2, 88 ENCODING_BYTE2LSB1 = 3, 89 ENCODING_SHIFTJIS = 4, 90 ENCODING_UNICODE = 16, 91 ENCODING_EXTERNAL = 32 92 } MW32EncodingType; 93 94 struct MW32Encoding 88 95 { 89 MW32_FID_WINDOWS_FONT, 90 MW32_FID_BDF_FONT 91 } font_id; 96 MW32EncodingType type; 97 int font_unit_byte; 98 union 99 { 100 ccl_id_type ccl_method; 101 } e; 102 }; 92 103 93 104 struct MW32LogicalFont … … 101 112 int descent; 102 113 int overhang; 103 int encoding_type;104 114 int relative_compose; 105 115 int default_ascent; 106 116 int fixed_pitch; 107 int dim;108 117 int character_spacing; 109 118 int centering; 110 struct ccl_id_type ccl_method;111 119 struct font_info *fontip; 120 121 MW32Encoding encoding; 112 122 113 123 /* LF methods */ … … 135 145 136 146 #define MW32_FONT_INFO_FROM_FONT(font) ((font)->fontip) 147 #define MW32_FONT_FROM_FONT_INFO(font_info) ((MW32LogicalFont*)(font_info)->font) 137 148 138 149 #define MW32_INVOKE_HASHPROC(font) ((*(font)->hash)(font))
