|
From: | David Reitter |
Subject: | bug#5892: [Aquamacs-bugs] Re: incorrect fontification of non-ascii chars on Mac OS X 10.4 |
Date: | Thu, 08 Apr 2010 17:01:59 -0000 |
On 29 Jun 2005, at 17:36, YAMAMOTO Mitsuharu wrote:
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...
So I second Will in saying that it'd be good if create-fontset-from- fontset-spec could be fixed.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 :)
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.
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...
[Prev in Thread] | Current Thread | [Next in Thread] |