GNU bug report logs - #1096
The Emacs 23 cann't display the cjk extb characters again.

Previous Next

Packages: emacs, w32;

Reported by: hongyi.zhao <at> gmail.com

Date: Mon, 6 Oct 2008 02:35:02 UTC

Severity: normal

Done: Jason Rumney <jasonr <at> f2s.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Kenichi Handa <handa <at> m17n.org>
To: jasonr <at> f2s.com
Cc: 1096 <at> debbugs.gnu.org, cyd <at> stupidchicken.com,
        hongyi.zhao <at> gmail.com
Subject: bug#1096: The Emacs 23 cann't display the cjk extb characters again.
Date: Wed, 10 Dec 2008 16:44:28 +0900
In article <1228891412.493f651496a3e <at> webmail.freedom2surf.net>, jasonr <at> f2s.com writes:

> Quoting Kenichi Handa <handa <at> m17n.org>:
> > > hongyi.zhao <at> gmail.com wrote:

> > > > (if (display-graphic-p)
> > > > (set-fontset-font
> > > >  (frame-parameter nil 'font)
> > > >  '(#x20000 . #x2fa1d)
> > > >  '("*-Sun-ExtB" . "unicode-sip")))
> >
> > I've just installed a fix.  At least with Xft font backend,
> > Emacs should be able to find a proper font for the Unicode
> > SIP area (#x20000..#x2FFFF) now.

> At least part of the problem here is that the font name contains a -, which is
> not compatible with the use of xlfd as the internal representation of fonts.

That is why I suggested as above; i.e. prepend "*-" to the
family name so that the parser knows that foundry is nil and
the remaining part is a family name.

By the way, the above notation is kept for backward
compatibility (and also for handy way).   The cleaner code
is:

(set-fontset-font
 (frame-parameter nil 'font)
 '(#x20000 . #x2fa1d)
 (font-spec :family "*-Sun-ExtB" :registry "unicode-sip"))

because we are now using font-{spec|entity|object} as the
internal representation of fonts.

---
Kenichi Handa
handa <at> m17n.org




This bug report was last modified 16 years and 224 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.