gvim non-truetype font

This forum is dedicated to basic help and support :

Ask here your questions about basic installation and usage of Mageia. For example you may post here all your questions about getting Mageia isos and installing it, configuring your printer, using your word processor etc.

Try to ask your questions in the right sub-forum with as much details as you can gather. the more precise the question will be, the more likely you are to get a useful answer

gvim non-truetype font

Postby arromdee » Jul 27th, '12, 19:06

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?
Last edited by doktor5000 on Jul 27th, '12, 19:23, edited 1 time in total.
Reason: added code tags, to improve on clarity
arromdee
 
Posts: 40
Joined: Jul 27th, '12, 16:26

Return to Basic support

Who is online

Users browsing this forum: No registered users and 1 guest

cron