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

151  * "Monospace" is a standard font alias that should be present
315 {"-font", ARG_FONT|ARG_HAS_VALUE},
2412 * in size. */
2443 * with the current font if necessary.
2481 /* get the actual size of the scrollbars, if they are realized */
2651 * values have been used (those that dictate our initial size)
2671 /* GtkSockets use GtkPlug's [gui,mainwin] min-size hints to determine
2672 * their actual widget size. When we set our size ourselves (e.g.,
2673 * 'set columns=' or init. -geom) we briefly set the min. to the size
2688 /* Avoid an expose event when the size didn't change. */
2761 GtkIconSize size;
2780 case TBIS_TINY: size = GTK_ICON_SIZE_MENU; break;
2781 case TBIS_SMALL: size = GTK_ICON_SIZE_SMALL_TOOLBAR; break;
2782 case TBIS_MEDIUM: size = GTK_ICON_SIZE_BUTTON; break;
2783 case TBIS_LARGE: size = GTK_ICON_SIZE_LARGE_TOOLBAR; break;
2784 default: size = GTK_ICON_SIZE_INVALID; break;
2788 if (size == GTK_ICON_SIZE_INVALID)
2790 /* Let global user preferences decide the icon size. */
2792 size = gtk_toolbar_get_icon_size(toolbar);
2794 if (size != oldsize)
2798 GINT_TO_POINTER((int)size));
2800 gtk_toolbar_set_icon_size(toolbar, size);
3587 * hints (and thus the required size from -geom), but that after that we
3588 * put the hints back to normal (the actual minimum size) so we may
3590 * plug's window 'min hints to set *it's* minimum size, but that's also the
3592 * Thus set hints at start-up to ensure correct init. size, then a
3692 * them to remain at our required size for the parent GtkSocket to
3693 * give us the right initial size.
3705 /* For GTK2 changing the size of the form widget doesn't cause window
3849 * the shell size doesn't exceed the window size, i.e. if the window manager
3850 * ignored our size request. Usually this happens if the window is maximized.
3856 * gui_resize_shell() with the old size, then the normal callback would
3857 * report the new size through form_configure_event(). That caused the window
3905 * Set the windows size.
3920 /* With GTK+ 2, changing the size of the form widget doesn't resize
3941 * real size of the drawing area doesn't reflect Vim's internal ideas.
3951 * The screen size is used to make sure the initial window doesn't get bigger
3971 * window manager (task list and window title bar). */
3978 * height, so that the window size can be made to fit on the screen.
3987 gui_mch_settitle(char_u *title, char_u *icon UNUSED)
3989 if (title != NULL && output_conv.vc_type != CONV_NONE)
3990 title = string_convert(&output_conv, title, NULL);
3992 gtk_window_set_title(GTK_WINDOW(gui.mainwin), (const char *)title);
3995 vim_free(title);
4057 * Check if a given font is a CJK font. This is done in a very crude manner. It
4059 * font. Consequently, this function cannot be used as a general purpose check
4069 PangoFont *font;
4073 font = pango_context_load_font(gui.text_context, font_desc);
4075 if (font == NULL)
4084 font, pango_language_from_string(cjk_langs[i]));
4094 g_object_unref(font);
4130 * Put up a font dialog and return the selected font name in allocated memory.
4134 * The GTK2 font selection dialog has no filtering API. So we could either
4158 /* Annoying bug in GTK (or Pango): if the font name does not include a
4159 * size, zero is used. Use default point size ten. */
4195 /* Apparently some font names include a comma, need to escape
4247 * same font. Seems to work, and failing here isn't critical anyway.
4263 * of the current font. This is used by gui_gtk2_draw_string() to skip
4304 gui.ascii_font = item->analysis.font;
4330 * Initialize Vim to use the font or fontset with the given name.
4331 * Return FAIL if the font could not be loaded, OK otherwise.
4363 * o u t' rendering when a CJK 'fixed width' font is used. To work around
4416 /* Update lines and columns in accordance with the new font, keep the
4433 * Get a reference to the font "name".
4439 PangoFontDescription *font;
4452 font = pango_font_description_from_string((const char *)buf);
4456 font = NULL;
4459 font = pango_font_description_from_string((const char *)name);
4461 if (font != NULL)
4465 /* pango_context_load_font() bails out if no font size is set */
4466 if (pango_font_description_get_size(font) <= 0)
4467 pango_font_description_set_size(font, 10 * PANGO_SCALE);
4469 real_font = pango_context_load_font(gui.text_context, font);
4473 pango_font_description_free(font);
4474 font = NULL;
4480 if (font == NULL)
4487 return font;
4492 * Return the name of font "font" in allocated memory.
4495 gui_mch_get_fontname(GuiFont font, char_u *name UNUSED)
4497 if (font != NOFONT)
4499 char *pangoname = pango_font_description_to_string(font);
4514 * If a font is not going to be used, free its structure.
4517 gui_mch_free_font(GuiFont font)
4519 if (font != NOFONT)
4520 pango_font_description_free(font);
4712 * font, we have to compensate manually by adapting x_offset according
4715 pango_font_get_glyph_extents(item->analysis.font,
4757 pango_font_get_glyph_extents(item->analysis.font,
4774 PangoFont *font, PangoGlyphString *glyphs)
4793 font,
4802 font,
4903 * fuzzy font lookups from messing up the screen.
5092 flags, item->analysis.font, glyphs);
5885 * scaled down if the current font is not big enough, or scaled up if the image
5886 * size is less than 3/4 of the maximum sign size. With GTK+ 1, the pixmap
5887 * will be cut off if the current font is not big enough, or centered if it's
5914 * tiny differences in font size.