vim-patch:9.1.0915: GVim: default font size a bit too small (#31516)

Problem:  GVim: default font size a bit too small
Solution: increase guifont size to 12 pt on GTK builds
          of gVim (matveyt).

fixes: vim/vim#16172
closes: vim/vim#16178

ad3b6a3340

Co-authored-by: matveyt <matthewtarasov@yandex.ru>
This commit is contained in:
zeertzjq 2024-12-08 20:29:25 +08:00 committed by GitHub
parent 4bfdd1ee9d
commit 84d9f4f9f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View File

@ -55,6 +55,10 @@ silent! endwhile
" 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

View File

@ -785,8 +785,8 @@ func Test_1_highlight_Normalgroup_exists()
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)