On Mon, Apr 24, 2006 at 02:48:22PM +0200, dax2 wrote:
> Can anyone give a hint how to get font names for
> Vim - help advices to forget about XFLD and xfontsel. How can
> I designate a font like Sony Fixed 17pt alias 12x24, XFLD-name is
>
> -sony-fixed-*-*-*-*-*-170-*-*-*-*-8859-1
>
>
> Font "monospace\ 16" works nice from command-line but it is
> not the same. Maybe 12x24 uses subpixels, there are some pretty
> advanced serifs there.
>
> Thank you in advance for any answer:-)
Assuming you are talking about gvim (or vim -g) with GTK toolkit on
X windows with fontconfig, try to follow the recommendations. But most
likely they won't work for you. With fontconfig it is not possible to
select specific font without going thru much of the pain of modifying
/etc/fonts/local.conf
It took me 2 weeks to force fontconfig to return font with XFLD
-misc-fixed-medium-r-semicondensed-*-13-*-*-*-*-*-*-*
Even though fc-list was reporting it to be under name "Fixed", it didn't
want to give it to me, returning all kinds of ugly substitutes. Finally
I've made a dirty fix to local.conf:
<match target="font">
<test qual="all" name="family" compare="eq">
<string>Fixed</string>
</test>
<test qual="all" target="pattern" name="size" compare="not_eq">
<int>12</int>
</test>
<edit name="file" binding="strong">
<string>/usr/X11R6/lib/X11/fonts/misc/6x13.pcf.gz</string>
</edit>
<edit name="style" binding="strong">
<const>87</const>
</edit>
<edit name="scalable" binding="strong">
<bool>false</bool>
</edit>
</match>
With that added, I can request "Fixed" and get the desired font. If I'm
requesting "Fixed 12" then I get the scalable TTF. Maybe you can do
something similar to your local.conf or ~/.fonts.conf to force
fontconfig to return the desired font when you request "monospace 24".
--
Minds, like parachutes, function best when open