Subject: bug#1096: The Emacs 23 cann't display the cjk extb characters again.

From: Kenichi Handa <[email-masked]>
Date: Wed, 10 Dec 2008 16:44:28 +0900

In article <[email-masked]>, [email-masked] writes:

> Quoting Kenichi Handa <[email-masked]>:
> > > [email-masked] 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
[email-masked]