From: Adrian Robert <arobert@cogsci.ucsd.edu>
Cc: mituharu@math.s.chiba-u.ac.jp, emacs-devel@gnu.org
Subject: Re: macos.texi updated
Date: Mon, 24 Oct 2005 08:24:44 -0400 [thread overview]
Message-ID: <68bec734715667dad7b9fb9f810fc10e@cogsci.ucsd.edu> (raw)
In-Reply-To: <E1ESSSE-0006N9-5J@fencepost.gnu.org>
On Oct 20, 2005, at 12:55 AM, Richard M. Stallman wrote:
> At the elisp-
> wielding-user-visible level this manifests in what you pass to and
> get back from x-list-fonts, as well as any font-setting functions,
>
> Could you explain what "font-setting functions" means?
> Could you name some "font-setting functions"?
User-visible, that I know of:
set-frame-font
create-fontset-from-fontset-spec
> setting font as a frame parameter, etc...
>
> That parameter basically exists for the sake of those who might
> want to specify an XLFD font name. It's not the normal way to
> do things.
As far as I understand the code, and I could easily be wrong here, a
default font specification in an X resource (or, on the GNUstep port, a
user 'defaults database' value) makes it into the first emacs frame via
a frame parameter. (Faces then get defined off of this.) In emacs-20,
you could get away with just a font family and bold/italic spec here,
since there was also a font size frame parameter, but this was removed
in 22/23.
(Maybe in this case the answer is that emacs is trying to get away from
other preferences persistence mechanisms besides .emacs? But is .emacs
read before the first frame is made?)
> As for x-list-fonts, that uses XLFD because on X that was the
> normal interface to use. Is there a better way to do this now?
Right, but unfortunately x-list-fonts is not just used on X. Ideally,
there would be a "w-list-fonts" function that returns a list of lists
specifying all the information in structured lisp form. No lisp code
calling this would need to muck about with window-system-specific
string representations. In practice, X was first and alone, so each
port tended to just redefine its own version of x-list-fonts which
translates its own font names into XLFD. This is evil, but
understandable given how things evolved.
next prev parent reply other threads:[~2005-10-24 12:24 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-21 8:21 macos.texi updated YAMAMOTO Mitsuharu
2005-09-22 6:12 ` Steven Tamm
2005-09-22 10:20 ` YAMAMOTO Mitsuharu
2005-09-22 15:22 ` Stefan Monnier
2005-09-25 14:20 ` Adrian Robert
2005-09-28 8:30 ` YAMAMOTO Mitsuharu
2005-10-07 14:53 ` Adrian Robert
2005-10-09 18:16 ` Richard M. Stallman
2005-10-10 19:53 ` Adrian Robert
2005-10-11 14:44 ` Richard M. Stallman
2005-10-11 17:22 ` David Reitter
2005-10-12 16:24 ` Richard M. Stallman
2005-10-18 18:29 ` Adrian Robert
2005-10-20 4:55 ` Richard M. Stallman
2005-10-24 12:24 ` Adrian Robert [this message]
2005-10-25 15:59 ` Richard M. Stallman
2005-10-11 1:31 ` Stefan Monnier
2005-10-11 8:01 ` YAMAMOTO Mitsuharu
2005-10-11 17:10 ` Adrian Robert
2005-09-22 20:42 ` Jesper Harder
2005-09-23 4:46 ` YAMAMOTO Mitsuharu
2005-09-23 7:00 ` Cheng Gao
2005-09-25 19:45 ` Jesper Harder
2005-09-23 18:12 ` Richard M. Stallman
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=68bec734715667dad7b9fb9f810fc10e@cogsci.ucsd.edu \
--to=arobert@cogsci.ucsd.edu \
--cc=emacs-devel@gnu.org \
--cc=mituharu@math.s.chiba-u.ac.jp \
/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.