Changeset 4153
- Timestamp:
- 2006年08月31日 21時28分44秒 (2 years ago)
- Files:
-
- trunk/src/ChangeLog.Meadow (modified) (1 diff)
- trunk/src/fontset.h (modified) (1 diff)
- trunk/src/xdisp.c (modified) (13 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/ChangeLog.Meadow
r4152 r4153 1 2006-08-31 MIYOSHI Masanori <miyoshi@meadowy.org> 2 3 * xdisp.c: Use FONT_INFO_FROM_ID instead of 4 MW32_FONT_INFO_FROM_FONT. 5 6 * fontset.h (FONT_INFO_FROM_ID): Call mw32_get_font_info(). 7 1 8 2006-08-29 MIYOSHI Masanori <miyoshi@meadowy.org> 2 9 trunk/src/fontset.h
r4037 r4153 237 237 structure on frame F. If ID is invalid, return null. */ 238 238 239 #ifdef MEADOW 240 #define FONT_INFO_FROM_ID(F, ID) mw32_get_font_info (F, ID) 241 #else 239 242 #define FONT_INFO_FROM_ID(F, ID) \ 240 243 (((ID) >= 0 && (ID) < FRAME_X_DISPLAY_INFO ((F))->font_table_size) \ 241 244 ? (FRAME_X_DISPLAY_INFO ((F))->font_table + (ID)) \ 242 245 : 0) 246 #endif 243 247 244 248 extern Lisp_Object fontset_name P_ ((int)); trunk/src/xdisp.c
r4140 r4153 13105 13105 && XFASTINT (w->last_overlay_modified) >= OVERLAY_MODIFF))) 13106 13106 { 13107 13107 13108 /* If first window line is a continuation line, and window start 13108 13109 is inside the modified region, but the first change is before … … 18799 18800 if (charset != CHARSET_ASCII) 18800 18801 { 18801 #ifdef MEADOW18802 struct font_info *font_info = 0;18803 if (face->font)18804 {18805 font_info = MW32_FONT_INFO_FROM_FONT (face->font);18806 rif->encode_char (glyph->u.ch, char2b, font_info, two_byte_p);18807 }18808 #else /* not MEADOW */18809 18802 struct font_info *font_info 18810 18803 = FONT_INFO_FROM_ID (f, face->font_info_id); … … 18812 18805 glyph->font_type 18813 18806 = rif->encode_char (glyph->u.ch, char2b, font_info, two_byte_p); 18814 #endif /* not MEADOW */18815 18807 } 18816 18808 } … … 18847 18839 s->face = faces[s->gidx]; 18848 18840 s->font = s->face->font; 18849 #ifdef MEADOW18850 if (s->font)18851 s->font_info = MW32_FONT_INFO_FROM_FONT (s->font);18852 #else /* not MEADOW */18853 18841 s->font_info = FONT_INFO_FROM_ID (s->f, s->face->font_info_id); 18854 #endif /* not MEADOW */ 18855 18842 18856 18843 /* For all glyphs of this composition, starting at the offset 18857 18844 S->gidx, until we reach the end of the definition or encounter a … … 18959 18946 s->char2b + s->nchars, 18960 18947 &two_byte_p); 18961 #endif /* not MEADOW */ 18948 #endif /* not MEADOW */ 18962 18949 s->two_byte_p = two_byte_p; 18963 18950 ++s->nchars; … … 18971 18958 18972 18959 s->font = s->face->font; 18973 #ifdef MEADOW18974 if (s->font)18975 s->font_info = MW32_FONT_INFO_FROM_FONT (s->font);18976 #else /* not MEADOW */18977 18960 s->font_info = FONT_INFO_FROM_ID (s->f, s->face->font_info_id); 18978 #endif /* not MEADOW */18979 18961 18980 18962 /* If the specified font could not be loaded, use the frame's font, … … 18992 18974 s->pdx, &s->left_overhang, &s->right_overhang); 18993 18975 #endif 18994 18976 18995 18977 /* Adjust base line for subscript/superscript text. */ 18996 18978 s->ybase += voffset; … … 19049 19031 s->face = FACE_FROM_ID (s->f, face_id); 19050 19032 s->font = s->face->font; 19051 #ifdef MEADOW19052 if (s->font)19053 s->font_info = MW32_FONT_INFO_FROM_FONT (s->font);19054 #else /* not MEADOW */19055 19033 s->font_info = FONT_INFO_FROM_ID (s->f, s->face->font_info_id); 19056 #endif /* not MEADOW */19057 19034 s->width = glyph->pixel_width; 19058 19035 s->nchars = 1; … … 19100 19077 face = get_glyph_face_and_encoding (f, glyph, &char2b, NULL); 19101 19078 font = face->font; 19102 #ifdef MEADOW19103 if (font)19104 font_info = MW32_FONT_INFO_FROM_FONT (font);19105 #else /* not MEADOW */19106 19079 font_info = FONT_INFO_FROM_ID (f, face->font_info_id); 19107 #endif /* not MEADOW */19108 19080 if (font /* ++KFS: Should this be font_info ? */ 19109 19081 && (pcm = rif->per_char_metric (font, &char2b, glyph->font_type))) … … 19272 19244 if (face->font != NULL) 19273 19245 { 19274 #ifdef MEADOW19275 struct font_info *font_info19276 = MW32_FONT_INFO_FROM_FONT (face->font);19277 #else /* not MEADOW */19278 19246 struct font_info *font_info 19279 19247 = FONT_INFO_FROM_ID (f, face->font_info_id); 19280 #endif /* not MEADOW */19281 19248 if (font_info) 19282 19249 rif->encode_char (c, char2b, font_info, 0); … … 20409 20376 else 20410 20377 { 20411 #ifdef MEADOW20412 font_info = MW32_FONT_INFO_FROM_FONT (font);20413 #else /* not MEADOW */20414 20378 font_info = FONT_INFO_FROM_ID (it->f, face->font_info_id); 20415 #endif /* not MEADOW */20416 20379 boff = font_info->baseline_offset; 20417 20380 if (font_info->vertical_centering) … … 20756 20719 else 20757 20720 { 20758 #ifdef MEADOW20759 font_info = MW32_FONT_INFO_FROM_FONT (font);20760 #else /* not MEADOW */20761 20721 font_info = FONT_INFO_FROM_ID (it->f, face->font_info_id); 20762 #endif /* not MEADOW */20763 20722 boff = font_info->baseline_offset; 20764 20723 if (font_info->vertical_centering) … … 20847 20806 { 20848 20807 font_info 20849 #ifdef MEADOW20850 = MW32_FONT_INFO_FROM_FONT (font);20851 #else /* not MEADOW */20852 20808 = FONT_INFO_FROM_ID (it->f, face->font_info_id); 20853 #endif /* not MEADOW */20854 20809 boff = font_info->baseline_offset; 20855 20810 if (font_info->vertical_centering)
