[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Emacs and fontsets
From: |
Sebastien Kirche |
Subject: |
Re: Emacs and fontsets |
Date: |
Tue, 21 Sep 2004 11:25:53 +0200 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3.50 (darwin) |
Hi,
Le 20 Sep 2004, Tassilo Horn a dit :
> zrr <beijing_2008_gold@yahoo.com.cn> writes:
>
> > hmm...I think the '-gnu-unifont-' is not really font name. It's
> > likely to indicate some fonts that contain unicode
> > characters. You can install 'gnu-intlfonts' package:
>
> I'm quite sure that -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1 is a
> font name. If I put
>
> Emacs*font: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1
>
> in my ~/.Xdefaults and start Emacs and comment out the Fontset part
> above all unicode chars are displayed correctly, but this font causes
> some very strange behaviour (Some spaces are wider than
> others.). Therefore I wanted to use it only when it'r really needed.
>
Maybe create-fontset-from-fontset-spec could be helpful to you.
Here is an part of my .emacs where i define a custom fontset for Mac OSX.
It seems sometimes buggy (with french accentuated letters when displayed in
another frame than initial one letters are bigger -- if anyone can help)
(if window-system
(progn
(set-background-color "gray90")
;;X fonts specs format (désignation des fontes X)
;;-FOUNDRY-FAMILY-WEIGHT-SLANT-WIDTH--PIXELS-POINTS-HRES-VRES-SPACING-AVEWIDTH-CHARSET
;; Set frame size, color and fonts
(create-fontset-from-fontset-spec
"-*-monaco-*-*-*-*-9-*-*-*-*-*-fontset-monaco,
ascii:-apple-monaco-*-*-*-*-9-*-*-*-*-*-*,
latin-iso8859-1:-apple-monaco-*-*-*-*-9-*-*-*-*-*-mac-roman,
latin-iso8859-15:-apple-monaco-*-*-*-*-9-*-*-*-*-*-mac-roman,
utf-8:-apple-monaco-*-*-*-*-9-*-*-*-*-*-mac-roman,
mule-unicode-0100-24ff:-apple-monaco-*-*-*-*-9-*-*-*-*-*-mac-roman,
mule-unicode-2500-33ff:-etl-fixed-*-*-*-*-9-*-*-*-*-*-mac-roman")
;;mule-unicode-2500-33ff:-etl-fixed-medium-r-normal--14-140-75-75-m-140-mac-roman")
;;mule-unicode-2500-33ff:-apple-monaco-*-*-*-*-9-*-*-*-*-*-mac-roman")
;;latin-iso8859-9:-apple-monaco-*-*-*-*-9-*-*-*-*-*-mac-roman,
(setq default-frame-alist '((width . 120)
(height
. 44)
(top
. 440);pixels
(left
. 260);pixels
(font
. "fontset-monaco");fontset-mac
))
)
)
Hth,
Sébastien Kirche