unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Stephen J. Turnbull" <stephen@xemacs.org>
To: "Kumar, Amit" <ahkumar@mail.smu.edu>
Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Emacs Display Recangular blocks instead of fonts
Date: Mon, 27 May 2013 11:43:03 +0900	[thread overview]
Message-ID: <874ndpta6g.fsf@uwakimon.sk.tsukuba.ac.jp> (raw)
In-Reply-To: <BB6BA2C397CCB140A2475E542B216447053B3059@SXMB1PG.SYSTEMS.SMU.EDU>

Kumar, Amit writes:

 > Cannot convert string "-*-courier-medium-r-*-*-*-120-*-*-*-*-iso8859-*" to type FontStruct
 > Warning: Cannot convert string "-*-helvetica-medium-r-*--*-120-*-*-*-*-iso8859-1" to type FontStruct

These are the old-style "server-side" font objects.  These warnings
are from Xlib, and indicate that you have a badly configured
installation of X11.  It's not really an Emacs problem; your distro is
broken.

 > What I don't understand is why is emacs resorting to these fonts,
 > if it has problems can't it use some other fonts to display a
 > normal screen?

It should be doing so; I don't know why it doesn't.  I would guess
that Emacs is not able to find any fonts at all.  You do seem to have
the appropriate fonts installed in your file system (the ones in
/usr/share/X11/fonts), so there's a problem with the X server.

I don't recall exactly how modern X servers handle server-side fonts.
You may need a separate "font server" running to use the bitmap and
other old-style fonts you have installed.  Look for a font-server
package (or change distros, see below).

 > Fonts directory listed in /etc/fonts/fonts.conf

This a configuration file for fontconfig, which is irrelevant to
FontStruct.  It's probable that your Emacs was built only with
server-side fonts (21.4 is very old), but your server doesn't
understand how to render them.  So it substitutes boxes.

The current series of Emacs is 24.x, and older Emacs versions are
officially unsupported.  That doesn't mean you won't get help, but it
does mean that there are no problems with Emacs 21 where the default
solution is anything but "Upgrade, then come talk to us".

If upgrading is possible, you really should do so (for many reasons,
not just to make it easier for us to support you).

(Aside: If Scientific Linux [sic] distributes such an old Emacs,
what other problems may be hiding in the distro?  All of the main
distros keep up with Emacs releases with a lag of only a couple weeks.
Many provide a "bleeding edge" beta package as well.  The evidence is
strong that Emacs is both a valuable package and one that is easy to
keep up to date.  If Scientific Linux doesn't do so ....)

 > $ fc-list | grep -i "courier"
 > Courier:style=Regular
 > $ fc-list | grep -i helvetica
 > Helvetica:style=Regular

These are again fontconfig specs; since fontconfig finds these fonts,
that's strong evidence that your Emacs is too old to render them.




  parent reply	other threads:[~2013-05-27  2:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-26 23:32 Emacs Display Recangular blocks instead of fonts Kumar, Amit
2013-05-27  2:03 ` Stefan Monnier
2013-05-27  2:43 ` Stephen J. Turnbull [this message]
2013-05-27  7:07   ` Kumar, Amit
2013-05-27 11:12   ` Per Starbäck
2013-05-27 13:24   ` James Cloos
2013-05-27 13:42     ` Stephen J. Turnbull
2013-05-27 13:50       ` James Cloos
2013-05-27 14:10         ` Andreas Schwab
2013-05-27 14:32           ` James Cloos

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ndpta6g.fsf@uwakimon.sk.tsukuba.ac.jp \
    --to=stephen@xemacs.org \
    --cc=ahkumar@mail.smu.edu \
    --cc=emacs-devel@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).