From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: XeCycle Newsgroups: gmane.emacs.help Subject: Re: Display characters with a different size? Date: Mon, 11 Jun 2012 11:57:41 +0800 Message-ID: <874nqia4ay.fsf@xc.laptop> References: <87zk8bi7se.fsf@xc.laptop> <8A07EE2D-6E95-40CB-AE26-2B5247DAE63F@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: dough.gmane.org 1339387089 16649 80.91.229.3 (11 Jun 2012 03:58:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 11 Jun 2012 03:58:09 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Peter Dyballa Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 11 05:58:08 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SdvlV-0000fF-5c for geh-help-gnu-emacs@m.gmane.org; Mon, 11 Jun 2012 05:58:05 +0200 Original-Received: from localhost ([::1]:42960 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdvlU-0006Ah-V1 for geh-help-gnu-emacs@m.gmane.org; Sun, 10 Jun 2012 23:58:04 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37271) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdvlP-0006AE-ON for help-gnu-emacs@gnu.org; Sun, 10 Jun 2012 23:58:01 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SdvlN-0003cp-R9 for help-gnu-emacs@gnu.org; Sun, 10 Jun 2012 23:57:59 -0400 Original-Received: from mail-ey0-f169.google.com ([209.85.215.169]:44884) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SdvlN-0003cK-IK for help-gnu-emacs@gnu.org; Sun, 10 Jun 2012 23:57:57 -0400 Original-Received: by eaan1 with SMTP id n1so1892906eaa.0 for ; Sun, 10 Jun 2012 20:57:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=uGGi4w8hzQ7a/k7fiCGf7hgka+7Q2fiFV3hbt3SuQ7o=; b=lAdBLqTzWipkcoNGpWzPBV/W+92CaMSGZ/PLMdcO/wY9+J6K986Br8nzTJJW/HkYt4 AYR2X9RMJMLzzSngDcDzWT9eriYyjCdhY7/oS7Tt77QTcoaTHi1TVXisPE/RdI6MMOhs MkGm1//thyRBFFvb7q8pJcnyoEugLTpvqu4szuQ4shg1avzt054G5KNMEAxv7gr50wGl px9C9DZ4xcbxkWHL9aLDA1NRICPRjsniOGXWM6PNMKYXjMXlnnRXpaE8co+8OQhrrxq1 IXki62j6YN6X17uy+9tR09bA4sIzoL2CojpT5rki+oYKKqWxxhV1woGSjzbumHdUzgcW cHlw== Original-Received: by 10.14.95.199 with SMTP id p47mr5575547eef.22.1339387074738; Sun, 10 Jun 2012 20:57:54 -0700 (PDT) Original-Received: from xc.laptop ([2001:da8:8000:e104:ca0a:a9ff:fe72:7a0d]) by mx.google.com with ESMTPS id s47sm47802732eef.4.2012.06.10.20.57.50 (version=SSLv3 cipher=OTHER); Sun, 10 Jun 2012 20:57:54 -0700 (PDT) In-Reply-To: <8A07EE2D-6E95-40CB-AE26-2B5247DAE63F@Web.DE> (Peter Dyballa's message of "Sun, 10 Jun 2012 18:26:48 +0200") User-Agent: Gnus/5.130006 (Ma Gnus v0.6) Emacs/24.1.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.215.169 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85199 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Peter Dyballa 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: =2D-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")) =2D-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-roma= n, > 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? [...] =2D-=20 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 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iQEcBAEBAgAGBQJP1Wy3AAoJEI1xjsR3leWRob4IALY89kfXh30bmuxWuMu1mQsj Z4kMYcZ4uohANDbJWsY/WRntj9lD08jVjA+JsslnsrrkNxTyah4FfhLCXHL4HChv hSBnsC/Nrt7g8cnJDOWlkpBLQ91Wv/J/lF2eMVKjcOlhWu+ScSiz/KVl3eG2558c jrfSXKd2XfACVtoc+KYIPrJglUm8Y4ZCTSAsjT/qMs7+WReZGnGurjO1XLp0UXww b9xqsabuePuofe8jYCL/F2k8SCY/2mTcOYryhg8BPH59ErrhnfJdWDWbY16Wj/MA YsWQZSXPN+fuNsrAoj7fpqmYEtveCHnPVVPmmp/LKL7th7YwsjCIROUNk1ZKaVw= =otjY -----END PGP SIGNATURE----- --=-=-=--