[Fontconfig] gnome-terminal and font selection -- again

Brian J. Murrell brian at interlinx.bc.ca
Wed Feb 18 00:57:21 EST 2004

On Mon, 2004-02-16 at 14:55, Keith Packard wrote:
> You're so close...


> You need to assign each field separately;


> you can't use the string 
> syntax (although, that might not be a bad addition...)

Indeed.  It seemed "intuitive", and certainly is a lot more brief than
the alternative (see below).

> 	<edit name="width"><double>8.7</double></edit>
> might be what you want.  I don't know what the 'width' value of the font 
> you want to use is though; 87 is certainly wrong -- XLFD names use widths 
> in decipixels for some weird reason.

This worked.  I ended up using the following in my fonts.conf:

    <match target="pattern">
	<test qual="any" name="family">
	<edit name="family" mode="assign"><string>Fixed</string></edit>
	<edit name="style" mode="assign"><string>Regular</string></edit>
	<edit name="slant" mode="assign"><int>0</int></edit>
	<edit name="weight" mode="assign"><int>100</int></edit>
	<edit name="width" mode="assign"><double>8.7</double></edit>
	<edit name="pixelsize" mode="assign"><double>13</double></edit>
	<edit name="spacing" mode="assign"><int>100</int></edit>

It certainly is possible that I could have specified fewer edits and
still got the font I wanted, but I did not test (by trial and error)
this out.

So, this works, but it "butchers" the use of the the "Fixed" font for
any other applications.  Is there a way to use some other value than
"Fixed" such that it is listed as an available font in gnome-terminal's
setup dialog (actually the gnome/gtk font dialog)?

Ideally I want to define a brand new font name.  Perhaps something like
"My Terminal Font", so that "Fixed" remains unaltered but I get a new
font in the standard gnome font dialog that I can use in gnome-terminal.

Any way to do it with just fonts.conf?


My other computer is your Microsoft Windows server.

Brian J. Murrell
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20040217/39bcc4b9/attachment.pgp

More information about the Fontconfig mailing list