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

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

174 /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'.  */
936 int size;
939 size = strlen(color);
940 if (size == 3 || size == 6 || size == 9 || size == 12)
945 size /= 3;
959 t = color[size];
960 color[size] = '\0';
962 color[size] = t;
963 if (errno == ERANGE || end - color != size)
965 switch (size)
1711 : !NILP (f->title)
1712 ? f->title
1767 /* Adjust the frame size so that the client (text) dimensions
1878 update the mode lines and thereby update the title. */
1906 /* For setting the frame title, the title parameter should override
1908 if (! NILP (f->title))
1909 name = f->title;
1945 /* Change the title of frame F to NAME.
1946 If NAME is nil, use the frame name as the title.
1961 /* Don't change the title if it's already NAME. */
1962 if (EQ (name, f->title))
1967 f->title = name;
2067 /* Position and size of scroll bar. */
3528 char * title = (char *) pMis->itemData;
3533 SIZE size;
3541 if (title)
3544 GetTextExtentPoint32W (hdc, (WCHAR *) title,
3545 wcslen ((WCHAR *) title),
3546 &size);
3548 GetTextExtentPoint32 (hdc, title, strlen (title), &size);
3550 pMis->itemWidth = size.cx;
3551 if (pMis->itemHeight < size.cy)
3552 pMis->itemHeight = size.cy;
3573 /* Draw popup menu title. */
3574 char * title = (char *) pDis->itemData;
3575 if (title)
3587 /* Always draw title as if not selected. */
3594 (WCHAR *) title,
3595 wcslen ((WCHAR *) title), NULL);
3602 title, strlen (title), NULL);
3760 /* Hack to allow resizing the Emacs frame above the screen size.
4095 gc_values.font = FRAME_FONT (f);
4270 /* use the frame's title when getting resources for this frame. */
4277 Lisp_Object font;
4279 font = w32_get_arg (parameters, Qfont, "font", "Font", RES_TYPE_STRING);
4282 /* First, try whatever font the caller has specified. */
4283 if (STRINGP (font))
4285 tem = Fquery_fontset (font, Qnil);
4287 font = x_new_fontset (f, SDATA (tem));
4289 font = x_new_font (f, SDATA (font));
4291 /* Try out a font which we hope has bold and italic variations. */
4292 if (!STRINGP (font))
4293 font = x_new_font (f, "-*-Courier New-normal-r-*-*-*-100-*-*-c-*-iso8859-1");
4294 if (! STRINGP (font))
4295 font = x_new_font (f, "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1");
4297 if (! STRINGP (font))
4298 font = x_new_font (f, "-*-Fixedsys-normal-r-*-*-12-*-*-*-c-*-iso8859-1");
4300 if (! STRINGP (font))
4301 font = build_string ("Fixedsys");
4303 x_default_parameter (f, parameters, Qfont, font,
4304 "font", "Font", RES_TYPE_STRING);
4365 "title", "Title", RES_TYPE_STRING);
4417 /* Tell the server what size and position, etc, we want, and how
4419 bar so that its size can be taken into account. */
4479 /* Return the charset portion of a font name. */
4499 int size, char* filename);
4506 w32_load_system_font (f,fontname,size)
4509 int size;
4517 font_names = w32_list_fonts (f, build_string (fontname), size, 100);
4541 random font. If we had to fall back to EnumFontFamilies, the
4542 list is incomplete, so continue whether the font we want was
4551 /* Load the font and add it to the table. */
4554 XFontStruct *font;
4565 /* If no name was specified for the font, we get a random font
4574 font = (XFontStruct *) xmalloc (sizeof (XFontStruct));
4575 bzero (font, sizeof (*font));
4577 /* Set bdf to NULL to indicate that this is a Windows font. */
4578 font->bdf = NULL;
4582 font->hfont = CreateFontIndirect (&lf);
4584 if (font->hfont == NULL)
4596 oldobj = SelectObject (hdc, font->hfont);
4598 ok = GetTextMetrics (hdc, &font->tm);
4600 font->double_byte_p = 1;
4603 /* Unfortunately, some fonts (eg. MingLiU, a big5 ttf font)
4609 /* font->double_byte_p = GetFontLanguageInfo(hdc) & GCP_DBCS; */
4612 font->double_byte_p = cpi.MaxCharSize > 1;
4617 /* Fill out details in lf according to the font that was
4619 lf.lfHeight = font->tm.tmInternalLeading - font->tm.tmHeight;
4620 lf.lfWidth = font->tm.tmMaxCharWidth;
4621 lf.lfWeight = font->tm.tmWeight;
4622 lf.lfItalic = font->tm.tmItalic;
4623 lf.lfCharSet = font->tm.tmCharSet;
4624 lf.lfPitchAndFamily = ((font->tm.tmPitchAndFamily & TMPF_FIXED_PITCH)
4626 lf.lfOutPrecision = ((font->tm.tmPitchAndFamily & TMPF_VECTOR)
4629 w32_cache_char_metrics (font);
4636 w32_unload_font (dpyinfo, font);
4640 /* Find a free slot in the font table. */
4645 /* If no free slot found, maybe enlarge the font table. */
4663 fontp->font = font;
4670 /* Fixed width font. */
4671 fontp->average_width = fontp->space_width = FONT_WIDTH (font);
4677 pcm = w32_per_char_metric (font, &space, ANSI_FONT);
4681 fontp->space_width = FONT_WIDTH (font);
4683 fontp->average_width = font->tm.tmAveCharWidth;
4688 /* Cache the W32 codepage for a font. This makes w32_encode_char
4692 /* Work out the font's full name. */
4703 fontp->size = FONT_WIDTH (font);
4704 fontp->height = FONT_HEIGHT (font);
4708 the font code-points (0:0x20..0x7F, 1:0xA0..0xFF), or
4712 uses this font. So, we set information in fontp->encoding[1]
4730 /* Set global flag fonts_changed_p to non-zero if the font loaded
4732 before, or if the font loaded has a smaller height than any
4733 other font loaded before. If this happens, it will make a
4741 /* Load font named FONTNAME of size SIZE for frame F, and return a
4745 w32_load_font (f,fontname,size)
4748 int size;
4766 // If the font is already loaded, do not load it again.
4776 retval = w32_load_bdf_font (f, bdf_name, size, bdf_file);
4784 return w32_load_system_font(f, fontname, size);
4789 w32_unload_font (dpyinfo, font)
4791 XFontStruct * font;
4793 if (font)
4795 if (font->per_char) xfree (font->per_char);
4796 if (font->bdf) w32_free_bdf_font (font->bdf);
4798 if (font->hfont) DeleteObject(font->hfont);
4799 xfree (font);
4803 /* The font conversion stuff between x and w32 */
4805 /* X font string is as follows (from faces.el)
5106 /* Return all the X charsets that map to a font. */
5243 /* Get the Windows codepage corresponding to the specified font. The
5244 charset info in the font name is used to look up
5255 /* Extract charset part of font string. */
5376 height_pixels, /* pixel size */
5377 height_dpi, /* point size */
5422 /* Provide a simple escape mechanism for specifying Windows font names
5423 * directly -- if font spec does not beginning with '-', assume this
5425 * "<font name>[:height in pixels[:width in pixels[:weight]]]"
5582 0 (which usually signifies a scalable font).
5632 /* Find end of point size field. */
5639 /* Blank out the point size field. */
5688 /* Shift the rest of the font spec into place. */
5731 /* Strip out font heights and compare them seperately, since
5733 comparison between a font that declares only a pixel height and a
5759 font from each family, the second pass lists all the fonts from
5875 is non-nil and this is a plain font. */
5919 /* Check if we already listed this font. This may happen if
5921 bold and italic versions of the font. */
6017 F. If SIZE is not 0, it is the size (maximum bound width) of fonts
6019 frame, which means we can't get proper size info, as we don't have
6025 w32_list_fonts (f, pattern, size, maxnames)
6028 int size;
6111 Store that in the font cache for the display. */
6131 if (!size)
6142 /* Since we don't yet know the size of the font, we must
6170 if (found_size == size)
6177 /* keep track of the closest matching size in case
6184 else if (found_size < size)
6186 if (XINT (XCDR (second_best)) > size
6192 if (XINT (XCDR (second_best)) > size
6222 /* Return a pointer to struct font_info of font FONT_IDX of frame F. */
6248 /* Find a CCL program for a font specified by FONTP, and set the member
6475 DEFUN ("x-server-max-request-size", Fx_server_max_request_size,
6478 doc: /* Returns the maximum request size of the server of DISPLAY.
6804 /* Free the fonts in the font table. */
6811 w32_unload_font (dpyinfo, dpyinfo->font_table[i].font);
6860 FORMAT gives the size in bits of each element if VALUE is a list.
6948 int size = bytes_remaining;
6960 prop_value = make_string (tmp_data, size);
7173 /* Maximum size for tooltips; a cons (COLUMNS . ROWS). */
7295 /* use the frame's title when getting resources for this frame. */
7302 Lisp_Object font;
7304 font = w32_get_arg (parms, Qfont, "font", "Font", RES_TYPE_STRING);
7307 /* First, try whatever font the caller has specified. */
7308 if (STRINGP (font))
7310 tem = Fquery_fontset (font, Qnil);
7312 font = x_new_fontset (f, SDATA (tem));
7314 font = x_new_font (f, SDATA (font));
7317 /* Try out a font which we hope has bold and italic variations. */
7318 if (!STRINGP (font))
7319 font = x_new_font (f, "-*-Courier New-normal-r-*-*-*-100-*-*-c-*-iso8859-1");
7320 if (! STRINGP (font))
7321 font = x_new_font (f, "-*-Courier-normal-r-*-*-13-*-*-*-c-*-iso8859-1");
7323 if (! STRINGP (font))
7324 font = x_new_font (f, "-*-Fixedsys-normal-r-*-*-12-*-*-*-c-*-iso8859-1");
7326 if (! STRINGP (font))
7327 font = build_string ("Fixedsys");
7329 x_default_parameter (f, parms, Qfont, font,
7330 "font", "Font", RES_TYPE_STRING);
7413 specifications for the default font. For example, if there is an
7538 A tooltip's maximum size is specified by `x-max-tooltip-size'.
7539 Text larger than the specified size is clipped. */)
7720 /* Adjust Window size to take border into account. */
7728 /* Position and size tooltip, and put it in the topmost group.
7886 /* Create the dialog with PROMPT as title, using DIR as initial
7922 /* Apparently NT4 crashes if you give it an unexpected size.
8001 DEFUN ("w32-select-font", Fw32_select_font, Sw32_select_font, 0, 2, 0,
8002 doc: /* Select a font for the named FRAME using the W32 font dialog.
8003 Returns an X-style font string corresponding to the selection.
8007 in the font selection dialog. */)
8033 /* Initialize as much of the font details as we can from the current
8034 default font. */
8061 to minimize), #xf120 to restore frame to original size, and #xf100
8854 DEFVAR_LISP ("x-max-tooltip-size", &Vx_max_tooltip_size,
8855 doc: /* Maximum size for tooltips.
8867 DEFVAR_LISP ("x-pixel-size-width-font-regexp",
8869 doc: /* Regexp matching a font name whose width is the same as `PIXEL_SIZE'.
8871 Since Emacs gets width of a font matching with this regexp from
8872 PIXEL_SIZE field of the name, font finding mechanism gets faster for
8873 such a font. This is especially effective for such large fonts as
8906 where CHARSET_NAME is a string used in font names to identify the charset,