From: Lars Ingebrigtsen <larsi@gnus.org>
To: Drew Adams <drew.adams@oracle.com>
Cc: 14647@debbugs.gnu.org
Subject: bug#14647: 24.3.50; doc of `set-face-font'
Date: Fri, 01 Nov 2019 18:29:47 +0100 [thread overview]
Message-ID: <87k18jwlmc.fsf@gnus.org> (raw)
In-Reply-To: <87lhxmw0cj.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Fri, 07 Feb 2014 23:05:32 -0800")
Lars Ingebrigtsen <larsi@gnus.org> writes:
> Drew Adams <drew.adams@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
next prev parent reply other threads:[~2019-11-01 17:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-18 3:46 bug#14647: 24.3.50; doc of `set-face-font' Drew Adams
2014-02-08 7:05 ` Lars Ingebrigtsen
2019-11-01 17:29 ` Lars Ingebrigtsen [this message]
2019-11-02 10:49 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87k18jwlmc.fsf@gnus.org \
--to=larsi@gnus.org \
--cc=14647@debbugs.gnu.org \
--cc=drew.adams@oracle.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.