• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/emacs-93/emacs/src/

Lines Matching +defs:title +defs:font +defs:size

430    frame-title-format.  */
463 /* Like mode-line-format, but for the title bar on a visible frame. */
467 /* Like mode-line-format, but for the title bar on an iconified frame. */
471 /* List of functions to call when a window's size changes. These
567 /* Maximum buffer size for which to display line numbers. */
1102 /* With a very small font and a mode-line that's taller than
1572 if (face->font)
1573 height = FONT_HEIGHT (face->font);
2097 /* Try to determine frame pixel position and size of the glyph under
3755 it->dpend = v->contents + v->size;
4084 * (FONT_HEIGHT (face->font)));
4732 int size = 20;
4735 = (struct overlay_entry *) alloca (size * sizeof *entries);
4741 `entries' which has size `size' and currently contains `n'
4749 if (n == size) \
4751 int new_size = 2 * size; \
4756 bcopy (old, entries, size * sizeof *entries); \
4757 size = new_size; \
5545 if (v->size)
5549 it->dpend = v->contents + v->size;
7099 a face with proportional font, we could be faster for
8189 /* Resize the echo area window to exactly the size needed for the
8223 size of the text displayed. A3 and A4 are not used. Value is what
8236 /* Resize mini-window W to fit the size of its contents. EXACT:P
8237 means size the window exactly to the size needed. Otherwise, it's
8263 confuse redisplay functions when the size of the window they are
8355 /* Always resize to exact size needed. */
8907 /* Store a single character C for the frame title in mode_line_noprop_buf.
8919 double the buffer's size. */
8933 /* Store part of a frame title in mode_line_noprop_buf, beginning at
8939 frame title. */
8972 /* Set the title of FRAME, if it has changed. The title format is
8990 char *title;
9013 mode_line_noprop_buf; then display the title. */
9026 title = mode_line_noprop_buf + title_start;
9029 /* Set the title only if it's changed. This avoids consing in
9036 || bcmp (title, SDATA (f->name), len) != 0)
9037 x_implicitly_set_name (f, make_string (title, len), Qnil);
9110 /* If a window on this frame changed size, report that to
9111 the user and clear the size-change flag. */
9484 int i, size, size_needed;
9494 /* The size of the string we might be able to reuse. */
9495 size = (STRINGP (f->desired_tool_bar_string)
9503 if (size < size_needed || NILP (f->desired_tool_bar_string))
9509 Fremove_text_properties (make_number (0), make_number (size),
10482 int size = sizeof w->desired_matrix->method;
10483 int remaining = size - len - 1;
10984 /* Notice any pending interrupt request to change frame size. */
11080 /* Resized active mini-window to fit the size of what it is
11546 /* Change frame size now if a change is pending. */
11549 /* If we just did a pending size change, or have additional
12757 which reflect the whole buffer size, with special markers
13543 /* Set the thumb's position and size. */
14382 in smaller font sizes.
16367 This is clearly a mess with variable size fonts. It would be
16536 for (i = 0; i < XVECTOR (items)->size; i += 4)
17785 /* %c and %l are ignored in `frame-title-format'.
17786 (In redisplay_internal, the frame title is drawn _before_ the
17814 if (!NILP (f->title))
17815 return (char *) SDATA (f->title);
17826 int size = ZV - BEGV;
17827 pint2str (decode_mode_spec_buf, field_width, size);
17833 int size = ZV - BEGV;
17834 pint2hrstr (decode_mode_spec_buf, field_width, size);
17843 /* %c and %l are ignored in `frame-title-format'. */
17994 /* Display percentage of size above the bottom of the screen. */
18467 NUM - a (fractional) multiple of the default font width/height
18470 ELEMENT - size of a display element in pixels, see below.
18484 width - width of current font in pixels.
18485 height - height of current font in pixels.
18514 Width of left margin minus width of 1 character in the default font:
18517 Width of left margin minus width of 2 characters in the current font:
18536 calc_pixel_width_or_height (res, it, prop, font, width_p, align_to)
18540 void *font;
18591 return OK_PIXELS (font ? FONT_HEIGHT ((XFontStruct *)font) : FRAME_LINE_HEIGHT (it->f));
18593 return OK_PIXELS (font ? FONT_WIDTH ((XFontStruct *)font) : FRAME_COLUMN_WIDTH (it->f));
18684 font, width_p, align_to))
18707 font, width_p, align_to))
18742 fprintf (stderr, " font height = %d\n", FONT_HEIGHT (s->font));
18943 s->font = s->face->font;
18958 /* If the specified font could not be loaded, use the frame's
18959 default font, but record the fact that we couldn't load it in
18962 if (s->font == NULL)
18965 s->font = FRAME_FONT (s->f);
19013 /* Same face id implies same font, nowadays. */
19029 s->font = s->face->font;
19032 /* If the specified font could not be loaded, use the frame's font,
19036 if (s->font == NULL || glyph_not_available_p)
19039 s->font = FRAME_FONT (s->f);
19061 s->font = s->face->font;
19093 s->font = s->face->font;
19132 XFontStruct *font;
19139 font = face->font;
19141 if (font /* ++KFS: Should this be font_info ? */
19142 && (pcm = rif->per_char_metric (font, &char2b, glyph->font_type)))
19305 if (face->font != NULL)
19994 int face_ascent = face->font ? FONT_BASE (face->font) : FRAME_BASELINE_OFFSET (it->f);
20147 XFontStruct *font = face->font ? face->font : FRAME_FONT (it->f);
20157 && calc_pixel_width_or_height (&tem, it, prop, font, 1, 0))
20188 && calc_pixel_width_or_height (&tem, it, prop, font, 1, &align_to))
20208 && calc_pixel_width_or_height (&tem, it, prop, font, 0, 0))
20215 height = FONT_HEIGHT (font) * NUMVAL (prop);
20217 height = FONT_HEIGHT (font);
20224 derive the ascent from the font in use. */
20229 && calc_pixel_width_or_height (&tem, it, prop, font, 0, 0))
20232 ascent = (height * FONT_BASE (font)) / FONT_HEIGHT (font);
20279 height of specified face font.
20285 calc_line_height_property (it, val, font, boff, override)
20288 XFontStruct *font;
20312 font = FRAME_FONT (it->f);
20330 font = face->font;
20331 if (font == NULL)
20337 boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
20340 ascent = FONT_BASE (font) + boff;
20341 descent = FONT_DESCENT (font) - boff;
20378 XFontStruct *font;
20419 /* Get font to use. Encode IT->char_to_display. */
20422 font = face->font;
20424 /* When no suitable font found, use the default font. */
20425 font_not_found_p = font == NULL;
20428 font = FRAME_FONT (it->f);
20437 boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
20448 pcm = rif->per_char_metric (font, &char2b,
20449 FONT_TYPE_FOR_UNIBYTE (font, it->char_to_display));
20459 it->ascent = FONT_BASE (font) + boff;
20460 it->descent = FONT_DESCENT (font) - boff;
20474 it->pixel_width = FONT_WIDTH (font);
20543 int ascent = (((it->ascent + it->descent) * FONT_BASE (font))
20544 / FONT_HEIGHT (font));
20580 height = calc_line_height_property(it, height, font, boff, 1);
20590 it->ascent = FONT_BASE (font) + boff;
20591 it->descent = FONT_DESCENT (font) - boff;
20630 spacing = calc_line_height_property(it, total_height, font, boff, 0);
20634 spacing = calc_line_height_property(it, spacing, font, boff, 0);
20658 it->ascent = it->phys_ascent = FONT_BASE (font) + boff;
20659 it->descent = it->phys_descent = FONT_DESCENT (font) - boff;
20671 width of the font. */
20673 /* If we found a font, this font should give us the right
20674 metrics. If we didn't find a font, use the frame's
20675 default font and calculate the width of the character
20679 pcm = rif->per_char_metric (font, &char2b,
20680 FONT_TYPE_FOR_MULTIBYTE (font, it->c));
20689 it->phys_ascent = FONT_BASE (font) + boff;
20690 it->phys_descent = FONT_DESCENT (font) - boff;
20703 it->ascent = FONT_BASE (font) + boff;
20704 it->descent = FONT_DESCENT (font) - boff;
20740 XFontStruct *font;
20759 /* Get face and font to use. Encode IT->char_to_display. */
20764 font = face->font;
20766 /* When no suitable font found, use the default font. */
20767 font_not_found_p = font == NULL;
20770 font = FRAME_FONT (it->f);
20779 boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
20788 /* If we have not yet calculated pixel size data of glyphs of
20789 the composition for the current face font, calculate them
20792 here we check only the font of the first glyph. This leads
20795 if (cmp->font != (void *) font)
20797 /* Ascent and descent of the font of the first character of
20801 int font_ascent = FONT_BASE (font) + boff;
20802 int font_descent = FONT_DESCENT (font) - boff;
20807 cmp->font = (void *) font;
20811 && (pcm = rif->per_char_metric (font, &char2b,
20812 FONT_TYPE_FOR_MULTIBYTE (font, it->c))))
20820 width = FONT_WIDTH (font);
20821 ascent = FONT_BASE (font);
20822 descent = FONT_DESCENT (font);
20853 font = face->font;
20854 if (font == NULL)
20856 font = FRAME_FONT (it->f);
20866 boff = VCENTER_BASELINE_OFFSET (font, it->f) - boff;
20870 && (pcm = rif->per_char_metric (font, &char2b,
20871 FONT_TYPE_FOR_MULTIBYTE (font, ch))))
20879 width = FONT_WIDTH (font);
21389 where N = size of default frame font size.
21745 be in the midst of changing its size, and x and y may be off the
22360 int n = v->size;
23278 This is used when the size of F is changed. */
24092 doc: /* *Maximum buffer size for which line number should be displayed.
24112 `frame-title-format' and `icon-title-format'. */);
24114 DEFVAR_LISP ("frame-title-format", &Vframe_title_format,
24115 doc: /* Template for displaying the title bar of visible frames.
24122 DEFVAR_LISP ("icon-title-format", &Vicon_title_format,
24123 doc: /* Template for displaying the title bar of an iconified frame.
24145 DEFVAR_LISP ("window-size-change-functions", &Vwindow_size_change_functions,
24149 size since the last redisplay, or have been split or deleted,
24248 go back to their normal size. */);
24383 int size = 100;
24384 mode_line_noprop_buf = (char *) xmalloc (size);
24385 mode_line_noprop_buf_end = mode_line_noprop_buf + size;