On Mon, 24 Apr 2006 15:29:26 +0200
Andrei wrote:
[...][This isn't a quote, I have edited a bit for the Sony/misc-12x24]
>         <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>17</int>
>                 </test>
>                 <edit name="file" binding="strong">
>                         
> <string>/usr/X11R6/lib/X11/fonts/misc/12x24.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".

I have edited your suggestion (not much) and that was it.

THANK YOU! That was a nice help, it works instantly. I chose to call
it "Fixed 17" because as far as I know it is a 17pt (or 18pt?) font;
but that doesn't make much sense by the way because the size of the
font changes with screen-resolution.

I did not know how font-config works, and now know a little more,
which is good. Why is "style" and "strong" given the value "87"?


   Donald

-- 
dax2-tele2adsl:dk -- http://d-axel.dk/  Donald Axel

Reply via email to