#if 0
unsigned short attributes; /* per char flags (not predefined) */
#endif
- unsigned valid_p : 1;
} XCharStruct;
#define STORE_XCHARSTRUCT(xcs, w, bds) \
(xcs).lbearing = (bds).left, \
(xcs).rbearing = (bds).right, \
(xcs).ascent = -(bds).top, \
- (xcs).descent = (bds).bottom, \
- (xcs).valid_p = 1)
+ (xcs).descent = (bds).bottom)
+
+typedef struct
+{
+ char valid_bits[0x100 / 8];
+ XCharStruct per_char[0x100];
+} XCharStructRow;
+
+#define XCHARSTRUCTROW_CHAR_VALID_P(row, byte2) \
+ ((row)->valid_bits[(byte2) / 8] & (1 << (byte2) % 8))
+
+#define XCHARSTRUCTROW_SET_CHAR_VALID(row, byte2) \
+ ((row)->valid_bits[(byte2) / 8] |= (1 << (byte2) % 8))
struct MacFontStruct {
char *full_name;
#endif /* 0 */
XCharStruct min_bounds; /* minimum bounds over all existing char */
XCharStruct max_bounds; /* maximum bounds over all existing char */
- XCharStruct *per_char; /* first_char to last_char information */
+ union {
+ XCharStruct *per_char; /* first_char to last_char information */
+ XCharStructRow **rows; /* first row to last row information */
+ } bounds;
int ascent; /* logical extent above baseline for spacing */
int descent; /* logical decent below baseline for spacing */
};