[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Face initialization
From: |
Jason Rumney |
Subject: |
Re: Face initialization |
Date: |
Tue, 08 Jul 2008 14:40:19 +0100 |
User-agent: |
Thunderbird 2.0.0.14 (Windows/20080421) |
Richard M Stallman wrote:
> I suggest that the main advertised interface should use Xft/fontconfig
> notation.
>
> I do not know this notation, but I won't argue against this.
> Can one function accept both of these forms of font specification?
Currently the -fn command line argument accepts 3 forms of font
specification; GTK, Fontconfig and XLFD, so there is no reason why any
other place where fonts are specified as strings could not do the same.
GTK and Fontconfig formats are much easier for new users to deal with,
as most of the information is optional, and in their simplest forms,
they can just be the family name of a font, though for the default font
you will usually want to specify a size as well.
The following are equivalents in the different formats:
GTK: Fixed 12
Fontconfig: Fixed-12
XLFD: -*-Fixed-normal-r-normal-*-*-120-*-*-*-*-*-*
GTK: Fixed Bold 12
Fontconfig: Fixed-12:bold
XLFD: -*-Fixed-bold-r-normal-*-*-120-*-*-*-*-*-*
GTK: unrepresentable (AFAIK)
Fontconfig: Fixed-12:bold:foundry=misc
XLFD: -misc-Fixed-bold-r-normal-*-*-120-*-*-*-*-*-*
AFAIK GTK format only supports specifying family, point size, weight and
slant, while fontconfig supports those, plus arbitrary named properties,
which can include properties beyond the 14 fields in an XLFD descriptor.
- Re: Face initialization, (continued)
- Re: Face initialization, Stefan Monnier, 2008/07/06
- Re: Face initialization, Chong Yidong, 2008/07/06
- Re: Face initialization, Stefan Monnier, 2008/07/06
- Re: Face initialization, Chong Yidong, 2008/07/06
- Re: Face initialization, Stefan Monnier, 2008/07/07
- Re: Face initialization, Richard M Stallman, 2008/07/07
- Re: Face initialization, Stephen J. Turnbull, 2008/07/07
- Re: Face initialization, Richard M Stallman, 2008/07/08
- Re: Face initialization,
Jason Rumney <=
- Re: Face initialization, Richard M Stallman, 2008/07/08
- Re: Face initialization, Richard M Stallman, 2008/07/07
- Re: Face initialization, Chong Yidong, 2008/07/07
- Re: Face initialization, Jason Rumney, 2008/07/09
- Re: Face initialization, Chong Yidong, 2008/07/09
- Re: Face initialization, Miles Bader, 2008/07/09
- Re: Face initialization, Jason Rumney, 2008/07/10
- Re: Face initialization, Stefan Monnier, 2008/07/10
- Re: Face initialization, Jason Rumney, 2008/07/10
Re: Face initialization, Richard M Stallman, 2008/07/06