and removed from |defaults.vim|
- the completed word and completion type are provided when handling the
|CompleteDone| autocommand in the |v:event| dictionary
+- the default fontsize for the GTK builds of Vim (Windows and Unix) has been
+ increased to 12pt to accomodate modern high-dpi monitors
*added-9.2*
Added ~
* "Monospace" is a standard font alias that should be present
* on all proper Pango/fontconfig installations.
*/
-# define DEFAULT_FONT "Monospace 10"
+# define DEFAULT_FONT "Monospace 12"
#if defined(FEAT_GUI_GNOME) && defined(FEAT_SESSION)
# define USE_GNOME_SESSION
}
// The default font height in 100% scaling (96dpi).
-// (-12 in 96dpi equates to roughly 9pt)
-#define DEFAULT_FONT_HEIGHT (-12)
+// (-16 in 96dpi equates to roughly 12pt)
+#define DEFAULT_FONT_HEIGHT (-16)
static const LOGFONTW s_lfDefault =
{
" In the GUI we can always change the screen size.
if has('gui_running')
+ if has('gui_gtk')
+ " to keep screendump size unchanged
+ set guifont=Monospace\ 10
+ endif
set columns=80 lines=25
endif
let pat = '\(7x13\)\|\(\c-Misc-Fixed-Medium-R-Normal--13-120-75-75-C-70-ISO8859-1\)'
call assert_match(pat, fname)
elseif has('gui_gtk2') || has('gui_gnome') || has('gui_gtk3')
- " 'expected' is DEFAULT_FONT of gui_gtk_x11.c.
- call assert_equal('Monospace 10', fname)
+ " 'expected' is DEFAULT_FONT of gui_gtk_x11.c (any size)
+ call assert_match('^Monospace\>', fname)
endif
endfunc
" Empty list. Should fallback to the built-in default.
set guifont=
- call assert_equal('Monospace 10', getfontname())
+ call assert_match('^Monospace\>', getfontname())
endif
if has('xfontset')
" Test recalling default and existing option
set guifont=
- call assert_equal('Monospace\ 10', getcompletion('set guifont=', 'cmdline')[0])
+ call assert_match('^Monospace\>', getcompletion('set guifont=', 'cmdline')[0])
set guifont=Monospace\ 9
call assert_equal('Monospace\ 9', getcompletion('set guifont=', 'cmdline')[0])
if !has('gui_running')
call assert_match('hi Normal\s*clear', hlNormal)
elseif has('gui_gtk2') || has('gui_gnome') || has('gui_gtk3')
- " expect is DEFAULT_FONT of gui_gtk_x11.c
- call assert_match('hi Normal\s*font=Monospace 10', hlNormal)
+ " expect is DEFAULT_FONT of gui_gtk_x11.c (any size)
+ call assert_match('hi Normal\s*font=Monospace\>', hlNormal)
elseif has('gui_motif')
" expect is DEFAULT_FONT of gui_x11.c
call assert_match('hi Normal\s*font=7x13', hlNormal)
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 915,
/**/
914,
/**/