From: Adrian Robert <arobert@cogsci.ucsd.edu>
Cc: emacs-devel@gnu.org
Subject: Re: macos.texi updated
Date: Tue, 11 Oct 2005 13:10:55 -0400 [thread overview]
Message-ID: <7131209A-E2AA-4FBE-8EB7-0AA4A77448CD@cogsci.ucsd.edu> (raw)
In-Reply-To: <wlirw48otl.wl%mituharu@math.s.chiba-u.ac.jp>
On Oct 11, 2005, at 4:01 AM, YAMAMOTO Mitsuharu wrote:
>>>>>> On Fri, 07 Oct 2005 10:53:22 -0400, Adrian Robert
>>>>>> <arobert@cogsci.ucsd.edu> said:
>>>>>>
>
>
>> 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.
>>
>
> What we need to provide with respect to XLFD in the platform-dependent
> part is x_list_fonts and x_load_font, whose main components are
> emulations of XListFonts and XLoadQueryFont. Not so many, I think.
> Just out of curiosity, what part of them do you think is onerous? Is
> it missing or oversimplified in the Carbon port?
This is subjective.. it works out to about 2-3% of the ports on the
unicode 2 branch, but that is a lot:
In Carbon (macterm.c), my brief survey found "only" 500 lines
concerned more or less directly with XLFD compatibility.
In W32 (w32fns.c), I found around 1000 lines.
Obviously the approach makes a difference here, and I'm hoping the
Cocoa port can be less, as it has around 600 lines for all of font
management right now ex-XLFD, and doubling that would be
depressing. ;-) Bottom line, 500 lines seems a lot when this is over
and above both the code doing the main business of x_list_fonts and
the code filling in all of the XFontStruct and font_info when loading
fonts. Also, xfaces.c itself suffers; if the XLFD stuff were
separated out to "xfaces.c" (and "wfaces.c" was made for the
windowing-general part), I strongly suspect the code would be easier
to understand and maintain.
next prev parent reply other threads:[~2005-10-11 17:10 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
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 [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7131209A-E2AA-4FBE-8EB7-0AA4A77448CD@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).