comparison src/macgui.h @ 59718:d4cb255b034d

* dispextern.h (struct glyph_string): New members clip_head and clip_tail. * xdisp.c (get_glyph_string_clip_rect): Restrict horizontal clip region to the area between clip_head and clip_tail. (draw_glyphs): Record the area that need to be actually redrawn to the new variables clip_head and clip_tail when there are overhangs. Set values of these variables to the corresponding members in struct glyph_string. Refine x coordinates for * macgui.h (STORE_XCHARSETSTRUCT): New macro. * macterm.c (mac_compute_glyph_string_overhangs): Implement with QDTextBounds. (x_draw_glyph_string): Don't fill the background of the successor of a glyph with a right overhang if the successor will draw a cursor. (XLoadQueryFont): Obtain font metrics using QDTextBounds. (x_redisplay_interface): Add entry for compute_glyph_string_overhangs.
author Steven Tamm <steventamm@mac.com>
date Mon, 24 Jan 2005 17:59:36 +0000
parents 9bde7721ad0f
children f69bf8238a7e befae6bafecb
comparison
equal deleted inserted replaced
59717:351ffb20ab9f 59718:d4cb255b034d
90 int width; 90 int width;
91 int ascent; 91 int ascent;
92 int descent; 92 int descent;
93 } XCharStruct; 93 } XCharStruct;
94 94
95 #define STORE_XCHARSTRUCT(xcs, w, bds) \
96 ((xcs).width = (w), \
97 (xcs).lbearing = (bds).left, \
98 (xcs).rbearing = (bds).right, \
99 (xcs).ascent = -(bds).top, \
100 (xcs).descent = (bds).bottom)
101
95 struct MacFontStruct { 102 struct MacFontStruct {
96 char *fontname; 103 char *fontname;
97 104
98 short mac_fontnum; /* font number of font used in this window */ 105 short mac_fontnum; /* font number of font used in this window */
99 int mac_fontsize; /* size of font */ 106 int mac_fontsize; /* size of font */