From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Giorgos Keramidas Newsgroups: gmane.emacs.help Subject: Re: debian emacs 22.2.1 why do greek and hebrew fonts display normally with -nw and not in an xwindow Date: Sat, 29 Nov 2008 01:21:32 +0200 Organization: SunSITE.dk - Supporting Open source Message-ID: <873ahbzbb7.fsf@kobe.laptop> References: <788c442d-9dc5-4777-a4f4-a30dad562b71@k36g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227919251 30801 80.91.229.12 (29 Nov 2008 00:40:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 00:40:51 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 01:41:53 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6DuA-0004ae-Vm for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 01:41:51 +0100 Original-Received: from localhost ([127.0.0.1]:34649 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6Dt1-0001WD-5O for geh-help-gnu-emacs@m.gmane.org; Fri, 28 Nov 2008 19:40:39 -0500 Original-Path: news.stanford.edu!headwall.stanford.edu!news.glorb.com!news2!dotsrc.org!filter.dotsrc.org!news.dotsrc.org!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) Cancel-Lock: sha1:e2rHAMemKKdJCR5MTrs1z7Kazh0= Original-Lines: 51 Original-NNTP-Posting-Host: 62.1.67.98 Original-X-Trace: news.sunsite.dk DXC=oD6EM95=Sbe`; IS0i7S8TaYSB=nbEKnkkf2; 89Q0P2=bL^MjgJg8^6hNg5C`e0mefT44O3cEP\bRO^IdFh Original-X-Complaints-To: staff@sunsite.dk Original-Xref: news.stanford.edu gnu.emacs.help:164883 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:60211 Archived-At: On Fri, 28 Nov 2008 12:44:05 -0800 (PST), shul wrote: > Hi I have an utf8 encoded file with some greek characters and it looks > like "square boxes" when it opens in > with > emacs 3.pl > while it looks fine with > emacs -nw 3.pl. > > If you want to look at the files. I downloaded them from > > http://www.ibm.com/developerworks/linux/library/l-cpunicode/index.html > cp35.zip > > What is wrong with my setup. What can I do so that the characters > will display in both the x windows and term version of emacs? The -nw sessions use whatever font happens to be the terminal font for your currently open terminal window. For standalone X11 sessions of Emacs you will have to use a font that supports Greek UTF-8 text. I regularly type Greek text using either the UTF-8 or the ISO 8859-7 coding system using the `DejaVu Sans Mono' or the `Liberation Mono' fonts. You can install the DejaVu fonts in Debian by typing: # apt-get install ttf-dejavu You can install the Liberation fonts by typing: # apt-get install ttf-liberation Then it should be possible to see these fonts in the output of fc-list: # fc-list ':lang=el' | fgrep -i mono DejaVu Sans Mono:style=Bold Oblique DejaVu Sans Mono:style=Oblique DejaVu Sans Mono:style=Book DejaVu Sans Mono:style=Bold ... If the installation completes successfully, and you can see the fonts in the output of fc-list(1), you can start Emacs with `DejaVu Sans Mono' as its font, by typing: $ emacs -fn 'DejaVu Sans Mono' Using a different font size then the default is possible too: $ emacs -fn 'DejaVu Sans Mono:size=13'