mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
updated for version 7.0022
This commit is contained in:
@@ -2722,7 +2722,7 @@ mainwin_screen_changed_cb(GtkWidget *widget,
|
||||
|
||||
if (gui.norm_font != NULL)
|
||||
{
|
||||
gui_mch_init_font(p_guifont, 0);
|
||||
gui_mch_init_font(p_guifont, FALSE);
|
||||
gui_set_shellsize(FALSE, FALSE);
|
||||
}
|
||||
}
|
||||
@@ -4792,6 +4792,34 @@ gui_mch_get_font(char_u *name, int report_error)
|
||||
return font;
|
||||
}
|
||||
|
||||
/*
|
||||
* Return the name of font "font" in allocated memory.
|
||||
*/
|
||||
/*ARGSUSED*/
|
||||
char_u *
|
||||
gui_mch_get_fontname(GuiFont font, char_u *name)
|
||||
{
|
||||
#ifdef HAVE_GTK2
|
||||
if (font != NOFONT)
|
||||
{
|
||||
char *name = pango_font_description_to_string(font);
|
||||
|
||||
if (name != NULL)
|
||||
{
|
||||
char_u *s = vim_strsave((char_u *)name);
|
||||
|
||||
g_free(name);
|
||||
return s;
|
||||
}
|
||||
}
|
||||
#else
|
||||
/* Don't know how to get the name, return what we got. */
|
||||
if (name != NULL)
|
||||
return vim_strsave(name);
|
||||
#endif
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#if !defined(HAVE_GTK2) || defined(PROTO)
|
||||
/*
|
||||
* Set the current text font.
|
||||
|
Reference in New Issue
Block a user