From: YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
To: David Reitter <david.reitter@gmail.com>
Cc: aquamacs-bugs@lists.sourceforge.net, whenney@gmail.com,
5869@debbugs.gnu.org
Subject: bug#5869: [Aquamacs-bugs] Re: incorrect fontification of non-ascii chars on Mac OS X 10.4
Date: Thu, 30 Jun 2005 12:34:43 +0900 [thread overview]
Message-ID: <wlirzwmsa4.wl%mituharu__20770.5020242885$1270746221$gmane$org@math.s.chiba-u.ac.jp> (raw)
In-Reply-To: <7A52A2B4-ADD0-44A0-B8C9-A1F8F4CCDE75@gmail.com>
>>>>> On Wed, 29 Jun 2005 17:59:01 +0100, David Reitter <david.reitter@gmail.com> said:
>>> Well, create-fontset-from-mac-roman seems to create fontsets with
>>> fonts only drawn from the 'roman' type.
>> Could you give me a concrete example?
> I didn't try it out (don't use cyrillic fonts etc.), but I looked at
> the name of the function and at the code, which uses
> (create-fontset-from-ascii-font font resolved-font fontset-name)
> The documentation says that this function 'Create[s] a fontset from
> an ASCII font font", which I take to be roman only. But let me know
> if I'm mistaken there. I don't know much about the whole font
> business...
Please don't just guess. Fontsets defined with
create-fontset-from-ascii-font can also display non-ascii fonts (if
corresponding fonts are installed). Unspecified parts are
complemented using the data in "fontset-default" and others.
I've been using fontsets defined with
create-fontset-from-mac-roman-font and I can display CJK characters as
well as mac-roman, mac-centraleurroman, mac-cyrillic, mac-symbol, and
mac-dingbats characters.
>> As for the "tons of wrong glyphs" problem, I think that's due to a
>> misuse of the function, rather than a bug. The function
>> create-fontset-from-fontset-spec is suitable only for the case that
>> all the characters in a single charset are displayed with a single
>> font. But that's not the case for fonts in Mac encodings.
> Uuh, oh - the documentation of create-fontset-from-fontset-spec
> doesn't say so. Maybe it's a documentation bug then :)
I think the format of the FONTSET-SPEC argument implicitly says that.
FONTSET-SPEC is a string of the format:
FONTSET-NAME,CHARSET-NAME0:FONT-NAME0,CHARSET-NAME1:FONT-NAME1,...
Moreover, we usually don't have to care about that on X11.
> So what should we use to define a fontset that contains roman and
> non- roman fonts for a variety of charsets? That's quite relevant,
> because at least a few standard fontsets need to support everything.
(create-fontset-from-mac-roman-font
"-*-FAMILY-medium-r-normal--SIZE-*-*-*-*-*-mac-roman" nil "NAME")
would do the right thing for normal use. If one also want to use ETL
fonts, one can refer to how "fontset-mac" is defined.
> If you look at carbon-font.el by T. Hiromatsu, you'll see a lot of
> (undocumented or documented-in-Japanese) code that deals with fonts,
> using create-fontset-from-fontset-spec. I assume you have a better
> idea about what's going on there...
I've no idea about its intention. It also introduces tons of wrong
glyphs...
YAMAMOTO Mitsuharu
mituharu@math.s.chiba-u.ac.jp
next prev parent reply other threads:[~2005-06-30 3:34 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <F6BCBF6F-FF15-4D11-9AE1-ECBDCA0A0417@gmail.com>
2005-06-29 11:15 ` bug#5885: [Aquamacs-bugs] Re: incorrect fontification of non-ascii chars on Mac OS X 10.4 YAMAMOTO Mitsuharu
[not found] ` <wl7jgdjtxc.wl%mituharu@math.s.chiba-u.ac.jp>
2005-06-29 15:54 ` bug#5901: " William Henney
[not found] ` <BC82FC11-C906-429F-9546-F9EE3E9D1B4B@gmail.com>
2005-06-29 16:03 ` bug#5888: " David Reitter
[not found] ` <A6AF94A4-60BD-4929-8A4F-F7D17FDAE469@gmail.com>
2005-06-29 16:36 ` bug#5886: " YAMAMOTO Mitsuharu
[not found] ` <20050630.013633.55126241.mituharu@math.s.chiba-u.ac.jp>
2005-06-29 16:59 ` bug#5892: " David Reitter
[not found] ` <7A52A2B4-ADD0-44A0-B8C9-A1F8F4CCDE75@gmail.com>
2005-06-30 3:34 ` YAMAMOTO Mitsuharu [this message]
[not found] ` <wlirzwmsa4.wl%mituharu@math.s.chiba-u.ac.jp>
2005-06-30 6:52 ` bug#5868: " David Reitter
[not found] ` <04238FA2-2D02-41F0-9FDC-F843D518985F@gmail.com>
2005-06-30 10:40 ` bug#5870: " YAMAMOTO Mitsuharu
2005-06-30 17:56 ` bug#5880: " Stefan Monnier
[not found] ` <jwvmzp7bujm.fsf-monnier+emacs@gnu.org>
2005-07-01 7:21 ` bug#5884: " YAMAMOTO Mitsuharu
[not found] ` <wl4qbfxa8h.wl%mituharu@math.s.chiba-u.ac.jp>
2005-07-01 15:15 ` bug#5875: " Stefan Monnier
[not found] ` <87u0jea7gy.fsf-monnier+emacs@gnu.org>
2005-07-01 16:32 ` bug#5899: " William Henney
[not found] ` <F862FCDC-4751-462D-A6A5-C2099EC31794@gmail.com>
2005-07-01 16:41 ` bug#5874: " David Reitter
2005-07-01 17:05 ` bug#5879: " Stefan Monnier
2005-07-02 4:01 ` bug#5883: " YAMAMOTO Mitsuharu
2005-07-02 5:04 ` bug#5873: " YAMAMOTO Mitsuharu
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='wlirzwmsa4.wl%mituharu__20770.5020242885$1270746221$gmane$org@math.s.chiba-u.ac.jp' \
--to=mituharu@math.s.chiba-u.ac.jp \
--cc=5869@debbugs.gnu.org \
--cc=aquamacs-bugs@lists.sourceforge.net \
--cc=david.reitter@gmail.com \
--cc=whenney@gmail.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.