[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Mac OS X (Carbon): Font names need code conversion
From: |
Andrew Choi |
Subject: |
Re: Mac OS X (Carbon): Font names need code conversion |
Date: |
Mon, 20 Jan 2003 09:42:10 -0700 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
YAMAMOTO Mitsuharu <address@hidden> writes:
> [...]
>
> On Mac OS X, there are some CJK fonts whose names contain non-ASCII
> characters. The Carbon version of Emacs can use them (evaluating
> `(x-list-fonts "*")' shows them), but they are just undecoded unibyte
> strings and thus hard to read or specify.
>
> The attached patch decodes/encodes font names according to the
> ``script code'' of each font. It seems that they are encoded by
> different coding systems depending on its script code, e.g., sjis for
> Japanese fonts and euc-kr for Korean fonts.
>
> The patch also includes the code to exclude the fonts whose names
> start with ``.'', as other Carbon applications do not list such fonts
> in their font menus, and there is a font called ``.aqua kana'' that
> contains only partial glyphs (Japanese KANAs).
>
> I've tested it for a few weeks and no problems are found so far, but I
> would appreciate if someone would check whether it is valid or not.
Hi Mitsuharu,
Thank you for your contribution. I have tested your patch and it works
well for me.
I would like to check it into the CVS repository. Have you signed a
copyright assignment form for Emacs for previously contributed code, as
explained here:
http://www.gnu.org/prep/maintain_5.html#SEC5
If not, let me know so we can arrange to obtain one from you.
Andrew.