Page 1 of 1

gvim non-truetype font

PostPosted: Jul 27th, '12, 19:06
by arromdee
I would like to get gvim to use the vga font from dosemu. I created a symbolic link in /etc/X11/fontpath.d to /usr/share/dosemu/Xfonts and am able to use this font in other ways. For instance, "xterm -fn vga" gets me an xterm with this font. However, gvim won't let me select it. I presume that this is because it is not a Truetype font, but a fixed size font.

I can't select it in .vimrc either. For instance:

Code: Select all
/home/arromdee% xlsfonts | grep vga
-dosemu-vga-medium-r-normal--0-0-75-75-c-0-ibm-cp437
-dosemu-vga-medium-r-normal--0-0-75-75-c-0-ibm-cp866
-dosemu-vga-medium-r-normal--0-0-75-75-p-0-ibm-cp437
-dosemu-vga-medium-r-normal--17-160-75-75-c-80-ibm-cp866
-dosemu-vga-medium-r-normal--17-160-75-75-p-80-ibm-cp437
-dosemu-vga-medium-r-normal--19-190-75-75-c-100-ibm-cp437
-dosemu-vga-medium-r-normal--19-190-75-75-c-80-ibm-cp437
-dosemu-vga-medium-r-normal--20-200-75-75-c-100-ibm-cp866
-dosemu-vga-medium-r-normal--24-240-75-75-c-100-ibm-cp437
-dosemu-vga-medium-r-normal--30-300-75-75-c-120-ibm-cp437
vga
vga10x20
vga10x24
vga11x19
vga12x30
vga8x19
vgacyr



but in my .vimrc
se guifont=vga
or
se guifont=-dosemu-vga-medium-r-normal--17-160-75-75-c-80-ibm-cp866
doesn't work.

On the other hand, in the same .vimrc,
se guifont=Monospace\ 12
does work (but sets it to Monospace, which I don't want).
How can I use the dosemu font in gvim?