[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Display characters with a different size?
From: |
XeCycle |
Subject: |
Re: Display characters with a different size? |
Date: |
Mon, 11 Jun 2012 11:57:41 +0800 |
User-agent: |
Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) |
Peter Dyballa <Peter_Dyballa@Web.DE> writes:
> Am 10.06.2012 um 16:02 schrieb XeCycle:
>
>> I therefore want to tell Emacs to display those Chinese
>> characters with width twice the same as the former, and height
>> same as the former.
>
> Does that mean that these would look like on a Cinemascope
> screen?
Don't know what you mean :(
The problem is, when I have mixed Chinese and English, the
display is not monospaced anymore. This is my font
configuration:
--8<---------------cut here---------------start------------->8---
(create-fontset-from-fontset-spec
"-adobe-Courier Std-normal-normal-normal-*-19-*-*-*-m-0-fontset-courier")
(set-fontset-font
"fontset-courier" 'han
"-adobe-Adobe Heiti Std-normal-normal-normal-*-19-*-*-*-*-0-iso10646-1"
nil 'prepend)
(add-to-list 'default-frame-alist
'(font . "fontset-courier"))
--8<---------------cut here---------------end--------------->8---
You see, I set them to the same size. But the latter font is
taller, so breaks vertical alignment; the width is smaller than
width_of(Courier) * 2, so breaks horizontal alignment.
I can tweak the size of Heiti to be larger, to have the same
width; but the resulting display is rather ugly.
> Creating a fontset that uses for different Unicode ranges
> different (sized) fonts should be the way. Like that X resource
> maybe:
>
> (create-fontset-from-fontset-spec
> "-apple-monaco-medium-r-normal--9-*-*-*-*-*-fontset-monaco,
> ascii:-apple-monaco-medium-r-normal--9-90-75-75-m-90-mac-roman,
>
> latin-iso8859-15:-apple-monaco-medium-r-normal--9-90-75-75-m-90-mac-roman,
>
> latin-iso8859-1:-apple-monaco-medium-r-normal--9-90-75-75-m-90-mac-roman")
Thanks for the hint, but I don't know what's inside these magic
numbers. Can you show me a doc for this?
[...]
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
pgpFVFlB38PSI.pgp
Description: PGP signature
- Display characters with a different size?, XeCycle, 2012/06/10
- Re: Display characters with a different size?, Peter Dyballa, 2012/06/10
- Re: Display characters with a different size?,
XeCycle <=
- Re: Display characters with a different size?, Peter Dyballa, 2012/06/11
- Re: Display characters with a different size?, XeCycle, 2012/06/12
- Re: Display characters with a different size?, Peter Dyballa, 2012/06/12
- Re: Display characters with a different size?, XeCycle, 2012/06/12
- Re: Display characters with a different size?, Peter Dyballa, 2012/06/12
- Re: Display characters with a different size?, XeCycle, 2012/06/12
- Re: Display characters with a different size?, Kevin Rodgers, 2012/06/11
- Re: Display characters with a different size?, XeCycle, 2012/06/12