Curtis Brune wrote:

> OK I answered my own question.  I decided to hack on the emacs lisp some
> more...  Instead of hacking on the core emacs files I added commands to
> my ~/.emacs file.
> 
> Basically I wanted to use the -*-kai-*- font for viewing big5
> characters.  I also wanted it in three different sizes (the fonts are so
> beautiful you want to see them big).
> 
> I ended up creating three fontsets I could choose from when I hold down
> "shift+mouse1" .  Also you can see your fontset list with "M-x
> list-fontsets" .
> 
> 
> Here's what I added to my ~/.emacs file to get the three new fontsets.
> 
> ;;5/17/01
> ;; my standard fontset
> (defvar my-fontset-spec)
> (setq my-fontset-spec  
>       "-*-fixed-medium-r-normal-*-15-*-*-*-*-*-fontset-normal,
>       chinese-big5-1:*-kai-*-*-15-*,
>       chinese-big5-2:*-kai-*-*-15-*"
> )
> 
> (create-fontset-from-fontset-spec my-fontset-spec )
> 
> ;; Chinese fontsets
> (defvar big5-40-fontset-spec)
> (setq big5-40-fontset-spec  
>       "-*-fixed-medium-r-normal-*-40-*-*-*-*-*-fontset-big5.40,
>       chinese-big5-1:*-kai-*-*-40-*,
>       chinese-big5-2:*-kai-*-*-40-*"
> )
> (create-fontset-from-fontset-spec big5-40-fontset-spec )
> 
> (defvar big5-20-fontset-spec)
> (setq big5-20-fontset-spec
>       "-*-fixed-medium-r-normal-*-20-*-*-*-*-*-fontset-big5.20,
>       chinese-big5-1:*-kai-*-*-20-*,
>       chinese-big5-2:*-kai-*-*-20-*"
> )
> (create-fontset-from-fontset-spec big5-20-fontset-spec 

This works, but just for GNU Emacs, not XEmacs, which uses quite
different scheme.?Does anybody know how to do the same thing for
XEmacs??XEmacs seems to not use fontset anymore, at least as for
21.4.1.?When you change the font size, the operation affects just
iso8859-* font.?Seems to need more reading of the source code.

Best!



Reply via email to