From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <873ahbzbb7.fsf@kobe.laptop> (raw)
In-Reply-To: 788c442d-9dc5-4777-a4f4-a30dad562b71@k36g2000pri.googlegroups.com
On Fri, 28 Nov 2008 12:44:05 -0800 (PST), shul <meshulum@gmail.com> 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'
prev parent reply other threads:[~2008-11-28 23:21 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-11-28 20:44 debian emacs 22.2.1 why do greek and hebrew fonts display normally with -nw and not in an xwindow shul
2008-11-28 22:40 ` Peter Dyballa
2008-11-28 23:21 ` Giorgos Keramidas [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=873ahbzbb7.fsf@kobe.laptop \
--to=keramida@ceid.upatras.gr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.