gnome-terminal and font selection -- again

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



--=-TkyRiJyAaWXzu/8L9CHj
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

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

:-)

> You need to assign each field separately;

Ahhhh.

> you can't use the string=20
> 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=3D"width"><double>8.7</double></edit>
>=20
> might be what you want.  I don't know what the 'width' value of the font=20
> you want to use is though; 87 is certainly wrong -- XLFD names use widths=
=20
> in decipixels for some weird reason.

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

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

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?

b.

--=20
My other computer is your Microsoft Windows server.

Brian J. Murrell

--=-TkyRiJyAaWXzu/8L9CHj
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQBAMh3Al3EQlGLyuXARAuurAKC1V2EVuG7VWJZO0RmEA9gP2Vil2wCffMEa
s6OHCZLS4MISTgbWzCbHFA0=
=2F33
-----END PGP SIGNATURE-----

--=-TkyRiJyAaWXzu/8L9CHj--




[Index of Archives]     [Fedora Fonts]     [Fedora Users]     [Fedora Cloud]     [Kernel]     [Fedora Packaging]     [Fedora Desktop]     [PAM]     [Gimp Graphics Editor]     [Yosemite News]

  Powered by Linux