* Emacs and fontsets
@ 2004-09-20 16:29 Tassilo Horn
2004-09-20 16:55 ` zrr
[not found] ` <mailman.3370.1095699728.1998.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Tassilo Horn @ 2004-09-20 16:29 UTC (permalink / raw)
Hi,
I use a two weeks old CVS Emacs. I want to get it display unicode chars
in a different font than "normal" ascii text. I've put these line in my
~/.Xdefaults:
,----
| Emacs*Font: fontset-normal
| Emacs*Fontset-0:\
| -xos4-terminus-medium-*-*-*-14-*-*-*-*-*-fontset-normal,\
| mule-unicode-2500-33ff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
| mule-unicode-e000-ffff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
| mule-unicode-0100-24ff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1
`----
When I start emacs now the font really is xos4-terminus-..., but unicode
chars aren't displayed (only squares).
When I open a file with normal text and unicode chars, move the point
over a text part and do `C-u C-x =' I get:
,----
| character: ( (050, 40, 0x28, U+0028)
| charset: ascii (ASCII (ISO646 IRV))
| code point: 40
| syntax: () which means: open, matches )
| category: a:ASCII l:Latin
| buffer code: 0x28
| file code: 0x28 (encoded by coding system mule-utf-8-unix)
| display: by this font (glyph code)
| -xos4-Terminus-Medium-R-Normal--14-140-72-72-C-80-ISO8859-1 (0x28)
|
| There is an overlay here:
| From 14 to 15
| semantic ("setq" code nil nil #<overlay from 361 to 397 in .gnus.el>)
|
|
|
| There are text properties here:
| face [nil]
| fontified t
`----
When I move it over such an undisplayed unicode char and press `C-u C-x
=' I get:
,----
| character: ? (01110040, 299040, 0x49020, U+2500)
| charset: mule-unicode-2500-33ff (Unicode characters of the range
| U+2500..U+33FF.)
| code point: 32 32
| syntax: w which means: word
| buffer code: 0x9C 0xF2 0xA0 0xA0
| file code: 0xE2 0x94 0x80 (encoded by coding system mule-utf-8-unix)
| display: no font available
|
| There is an overlay here:
| From 14 to 15
| semantic ("if" code nil nil #<overlay from 6007 to 6600 in .gnus.el>)
|
|
|
| There are text properties here:
| face [font-lock-string-face]
| fontified t
`----
What's the mistake? What do I have to change, to get the unicode chars
displayed in -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1?
Regards and much thanks in advance,
Tassilo
--
main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Emacs and fontsets
2004-09-20 16:29 Emacs and fontsets Tassilo Horn
@ 2004-09-20 16:55 ` zrr
[not found] ` <mailman.3370.1095699728.1998.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: zrr @ 2004-09-20 16:55 UTC (permalink / raw)
Cc: help-gnu-emacs
"Tassilo Horn" <heimdall@uni-koblenz.de> writes:
> Hi,
>
> I use a two weeks old CVS Emacs. I want to get it display unicode chars
> in a different font than "normal" ascii text. I've put these line in my
> ~/.Xdefaults:
>
> ,----
> | Emacs*Font: fontset-normal
> | Emacs*Fontset-0:\
> | -xos4-terminus-medium-*-*-*-14-*-*-*-*-*-fontset-normal,\
> | mule-unicode-2500-33ff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
> | mule-unicode-e000-ffff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
> | mule-unicode-0100-24ff: -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1
> `----
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:
http://ftp.gnu.org/gnu/intlfonts/
Install it according to README & INSTALL and modify your
~/.Xdefaults as follows:
---------------------------------------------------------------------------
Emacs*Font: fontset-normal
Emacs*Fontset-0:\
-xos4-terminus-medium-*-*-*-14-*-*-*-*-*-fontset-normal,\
mule-unicode-0100-24ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1,\
mule-unicode-e000-ffff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1,\
mule-unicode-2500-33ff:-misc-fixed-medium-r-normal--16-*-*-*-*-*-iso10646-1
--------------------------------------------------------------------------
Good luck!
Tang
>
>
> When I start emacs now the font really is xos4-terminus-..., but unicode
> chars aren't displayed (only squares).
>
> When I open a file with normal text and unicode chars, move the point
> over a text part and do `C-u C-x =' I get:
>
> ,----
> | character: ( (050, 40, 0x28, U+0028)
> | charset: ascii (ASCII (ISO646 IRV))
> | code point: 40
> | syntax: () which means: open, matches )
> | category: a:ASCII l:Latin
> | buffer code: 0x28
> | file code: 0x28 (encoded by coding system mule-utf-8-unix)
> | display: by this font (glyph code)
> | -xos4-Terminus-Medium-R-Normal--14-140-72-72-C-80-ISO8859-1 (0x28)
> |
> | There is an overlay here:
> | From 14 to 15
> | semantic ("setq" code nil nil #<overlay from 361 to 397 in .gnus.el>)
> |
> |
> |
> | There are text properties here:
> | face [nil]
> | fontified t
> `----
>
> When I move it over such an undisplayed unicode char and press `C-u C-x
> =' I get:
>
> ,----
> | character: ? (01110040, 299040, 0x49020, U+2500)
> | charset: mule-unicode-2500-33ff (Unicode characters of the range
> | U+2500..U+33FF.)
> | code point: 32 32
> | syntax: w which means: word
> | buffer code: 0x9C 0xF2 0xA0 0xA0
> | file code: 0xE2 0x94 0x80 (encoded by coding system mule-utf-8-unix)
> | display: no font available
> |
> | There is an overlay here:
> | From 14 to 15
> | semantic ("if" code nil nil #<overlay from 6007 to 6600 in .gnus.el>)
> |
> |
> |
> | There are text properties here:
> | face [font-lock-string-face]
> | fontified t
> `----
>
> What's the mistake? What do I have to change, to get the unicode chars
> displayed in -gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1?
>
> Regards and much thanks in advance,
> Tassilo
> --
> main(){printf(&unix["\021%six\012\0"],(unix)["have"]+"fun"-0x60);}
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.3370.1095699728.1998.help-gnu-emacs@gnu.org>]
* Re: Emacs and fontsets
[not found] ` <mailman.3370.1095699728.1998.help-gnu-emacs@gnu.org>
@ 2004-09-20 18:15 ` Tassilo Horn
2004-09-21 9:25 ` Sebastien Kirche
0 siblings, 1 reply; 5+ messages in thread
From: Tassilo Horn @ 2004-09-20 18:15 UTC (permalink / raw)
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.
I cannot use the .Xdefault lines you gave me, because there are some
missing chars with it I need, e.g. the unicode thread arrows I use with
Gnus. (Look at my.gnus.org for "Gnus displaying threads using Unicode
chars and tree style Summary".)
But thanks a lot for your quick answer.
Regards,
Tassilo
--
The sticker on the side of the box said "Supported Platforms: Windows 95,
Windows NT 4.0, or better", so clearly Linux was a supported platform.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Emacs and fontsets
2004-09-20 18:15 ` Tassilo Horn
@ 2004-09-21 9:25 ` Sebastien Kirche
2004-09-21 10:05 ` Tassilo Horn
0 siblings, 1 reply; 5+ messages in thread
From: Sebastien Kirche @ 2004-09-21 9:25 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Emacs and fontsets
2004-09-21 9:25 ` Sebastien Kirche
@ 2004-09-21 10:05 ` Tassilo Horn
0 siblings, 0 replies; 5+ messages in thread
From: Tassilo Horn @ 2004-09-21 10:05 UTC (permalink / raw)
Hi Sebastian,
Tang (zrr) wrote me an email with the solution. These lines work:
Emacs*Font: fontset-normal
Emacs*Fontset-0:-xos4-terminus-medium-*-*-*-14-*-*-*-*-*-fontset-normal,\
mule-unicode-2500-33ff:-gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
mule-unicode-e000-ffff:-gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1,\
mule-unicode-0100-24ff:-gnu-unifont-*-*-*-*-16-*-*-*-*-*-iso10646-1
The problem was that I had a space between mule-unicode-xxxx.xxxx: and
the font.
Regards,
Tassilo
--
"It may just be paranoia, but I think Gnus reads my mail."
Bruce Stephens <bruce@cenderis.demon.co.uk>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-09-21 10:05 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-20 16:29 Emacs and fontsets Tassilo Horn
2004-09-20 16:55 ` zrr
[not found] ` <mailman.3370.1095699728.1998.help-gnu-emacs@gnu.org>
2004-09-20 18:15 ` Tassilo Horn
2004-09-21 9:25 ` Sebastien Kirche
2004-09-21 10:05 ` Tassilo Horn
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.