GNU bug report logs -
#14647
24.3.50; doc of `set-face-font'
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 18 Jun 2013 03:47:02 UTC
Severity: minor
Tags: fixed
Found in version 24.3.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 14647 in the body.
You can then email your comments to 14647 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14647
; Package
emacs
.
(Tue, 18 Jun 2013 03:47:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 18 Jun 2013 03:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
1. Neither the Elisp manual (node `Attribute Functions') nor the doc
string says what form the string FONT must or may take.
2. The manual says that this command sets the :font attribute. The doc
string says instead that it sets attributes :family, :foundry, :width,
:height, :weight, and :slant. Which is it?
3. #1 is all the more imporatnt because the doc string of `x-list-fonts'
says that it returns a list of strings that are "suitable as arguments
to `set-face-font'. Really? Just what kind of strings are so suitable?
I think, but am not sure, that FONT must be in XLFD form. Whatever the
acceptable form(s), the doc needs to spell this out.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-06-13 on ODIEONE
Bzr revision: 112978 xfq.free <at> gmail.com-20130613224333-3yfl8navh3c1vmxy
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
CFLAGS='-O0 -g3' CPPFLAGS='-Ic:/Devel/emacs/include'
LDFLAGS='-Lc:/Devel/emacs/lib''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14647
; Package
emacs
.
(Sat, 08 Feb 2014 07:07:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 14647 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> oracle.com> writes:
> 1. Neither the Elisp manual (node `Attribute Functions') nor the doc
> string says what form the string FONT must or may take.
Good question. The function is barely used in the Emacs source code
tree. The only usage I could find that set it to something was this:
(defvar gamegrid-font "-*-courier-medium-r-*-*-*-140-100-75-*-*-iso8859-*"
"Name of the font used in X mode.")
> 2. The manual says that this command sets the :font attribute. The doc
> string says instead that it sets attributes :family, :foundry, :width,
> :height, :weight, and :slant. Which is it?
Yeah.
> 3. #1 is all the more imporatnt because the doc string of `x-list-fonts'
> says that it returns a list of strings that are "suitable as arguments
> to `set-face-font'. Really? Just what kind of strings are so suitable?
>
> I think, but am not sure, that FONT must be in XLFD form. Whatever the
> acceptable form(s), the doc needs to spell this out.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog http://lars.ingebrigtsen.no/
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14647
; Package
emacs
.
(Fri, 01 Nov 2019 17:30:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 14647 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Drew Adams <drew.adams <at> oracle.com> writes:
>
>> 1. Neither the Elisp manual (node `Attribute Functions') nor the doc
>> string says what form the string FONT must or may take.
>
> Good question. The function is barely used in the Emacs source code
> tree. The only usage I could find that set it to something was this:
>
> (defvar gamegrid-font "-*-courier-medium-r-*-*-*-140-100-75-*-*-iso8859-*"
> "Name of the font used in X mode.")
But it's basically any string that describes a font on your system,
depending on what font system you have. So "futura:size=20" works fine,
too.
>> 2. The manual says that this command sets the :font attribute. The doc
>> string says instead that it sets attributes :family, :foundry, :width,
>> :height, :weight, and :slant. Which is it?
>
> Yeah.
It looks like it's the latter, so I've altered the documentation in the
manual.
>> 3. #1 is all the more imporatnt because the doc string of `x-list-fonts'
>> says that it returns a list of strings that are "suitable as arguments
>> to `set-face-font'. Really? Just what kind of strings are so suitable?
>>
>> I think, but am not sure, that FONT must be in XLFD form. Whatever the
>> acceptable form(s), the doc needs to spell this out.
I don't think so -- we aren't told what the form is, because that seems
unnecessary. If we're curious for some reason, we can just call the
function.
So I'm closing this bug report.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 01 Nov 2019 17:30:03 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
14647 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Fri, 01 Nov 2019 17:30:03 GMT)
Full text and
rfc822 format available.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#14647
; Package
emacs
.
(Sat, 02 Nov 2019 10:50:01 GMT)
Full text and
rfc822 format available.
Message #18 received at 14647 <at> debbugs.gnu.org (full text, mbox):
> From: Lars Ingebrigtsen <larsi <at> gnus.org>
> Date: Fri, 01 Nov 2019 18:29:47 +0100
> Cc: 14647 <at> debbugs.gnu.org
>
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
> > Drew Adams <drew.adams <at> oracle.com> writes:
> >
> >> 1. Neither the Elisp manual (node `Attribute Functions') nor the doc
> >> string says what form the string FONT must or may take.
> >
> > Good question. The function is barely used in the Emacs source code
> > tree. The only usage I could find that set it to something was this:
> >
> > (defvar gamegrid-font "-*-courier-medium-r-*-*-*-140-100-75-*-*-iso8859-*"
> > "Name of the font used in X mode.")
>
> But it's basically any string that describes a font on your system,
> depending on what font system you have. So "futura:size=20" works fine,
> too.
That's inaccurate. The function accepts any form of the :font
attribute, including font objects etc., but this is a command, and
interactively it only allows strings.
Also, "futura:size=20" might not work on MS-Windows, where these forms
are emulated by Emacs (since there's no Fontconfig); you may need to
use "Futura-20" instead.
> >> 2. The manual says that this command sets the :font attribute. The doc
> >> string says instead that it sets attributes :family, :foundry, :width,
> >> :height, :weight, and :slant. Which is it?
Both, actually.
> > Yeah.
>
> It looks like it's the latter, so I've altered the documentation in the
> manual.
I've now altered the docs again to say that :font is set, and the
other attributes are also set.
> >> 3. #1 is all the more imporatnt because the doc string of `x-list-fonts'
> >> says that it returns a list of strings that are "suitable as arguments
> >> to `set-face-font'. Really? Just what kind of strings are so suitable?
> >>
> >> I think, but am not sure, that FONT must be in XLFD form. Whatever the
> >> acceptable form(s), the doc needs to spell this out.
>
> I don't think so -- we aren't told what the form is, because that seems
> unnecessary. If we're curious for some reason, we can just call the
> function.
The various forms are documented in the Emacs manual, under "Fonts".
A cross-reference leads there from the ELisp manual.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Nov 2019 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 203 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.