From: Adrian Robert <arobert@cogsci.ucsd.edu>
Cc: emacs-devel@gnu.org
Subject: Re: macos.texi updated
Date: Fri, 07 Oct 2005 10:53:22 -0400 [thread overview]
Message-ID: <991DC775-381E-4B96-BBC6-B3701CCD6EAD@cogsci.ucsd.edu> (raw)
In-Reply-To: <wlwtl1a91o.wl%mituharu@math.s.chiba-u.ac.jp>
On Sep 28, 2005, at 4:30 AM, YAMAMOTO Mitsuharu wrote:
>>>>>> On 25 Sep 2005 10:20:31 -0400, Adrian Robert
>>>>>> <arobert@cogsci.ucsd.edu> said:
>>>>>>
>
>
>> Even in X11, while XLFD is needed at the lowest level to interact
>> with the windowing system, is it really necessary to expose the user
>> to it? In the old days when emacs-X11 was first developed, X11
>> users were used to specifying fonts in ...-*-*-*-*-... fashion.
>> Nowadays, most apps shield them from this. Thus, maybe it's
>> reasonable to develop a new emacs font specification style that's
>> simpler, and use this even in the face code until the lowest level
>> where interaction w/the window system takes place?
>>
>
> I'm not against the introduction of a new font specification style,
> but I think it is mainly for developers and power-users. Emacs
> already has a mechanism that enables users to specify fonts in a
> simpler way at the face level.
You're right.. But the population of "power users" in this case for
whatever reason seems fairly large (just subjective impression), and
the requirement to learn XLFD (to compose a fontset, or whatever
else) and partake of the pleasures of asterisk-counting seems onerous.
In addition, I've been integrating the Cocoa port's font handling
with xfaces.c, and can say it's onerous for developers. All of these
structures and functions concerned with creating, parsing, and
storing the XLFD representation. And you can't avoid using it in a
port (at least, all of my attempts to work around it so far have
failed), so each platform gets to join in the fun. Thus you find the
various functions for faking (and unfaking) them under the two (now
three) non-X platforms.
XLFD should be removed from non-window-system-specific code and
replaced with a simple struct containing the same information. In
fact, given what's in font_info and common to "XFontStruct" on every
platform right now, this would amount to adding a couple of fields,
if that. The only advantage of using a string representation I've
seen so far is doing the regexp match in x_list_fonts. But this is a
false economy -- the extra code to do explicit field-by-field
matching on a struct would be trivial, and far smaller than all of
the XLFD translation and manipulation machinery now in place. And it
would be more efficient and reside completely in common, non-window-
system-specific code.
Be that as it may, the people who write the code get to decide how it
is, and I don't have the time / energy to try this rewrite now. The
Cocoa port will just live with it along with everyone else, though if
it gets too ugly I might revisit this choice..
BTW, I don't want to sound too down on xfaces.c -- both it and the
display interface code in general are vast improvements over emacs-20
in terms of sharing common code and simplifying what the platform-
specific part has to do. (Not to mention the enhanced
functionality.) Kudos to Gerd Moellmann and everyone else responsible!
next prev parent reply other threads:[~2005-10-07 14:53 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 [this message]
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
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=991DC775-381E-4B96-BBC6-B3701CCD6EAD@cogsci.ucsd.edu \
--to=arobert@cogsci.ucsd.edu \
--cc=emacs-devel@gnu.org \
/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.