aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2008-10-25 17:19:12 +0000
committerChong Yidong2008-10-25 17:19:12 +0000
commitb1446261ab54d6e3d7d76d5ae4367b295efb7d09 (patch)
tree4e2fa679877f53caf7898c7115933822b85e0471
parent8cd56959b43bd4e1ed5df42f2228b3302ea52812 (diff)
downloademacs-b1446261ab54d6e3d7d76d5ae4367b295efb7d09.tar.gz
emacs-b1446261ab54d6e3d7d76d5ae4367b295efb7d09.zip
Document monospace font problems.
-rw-r--r--etc/PROBLEMS75
1 files changed, 44 insertions, 31 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS
index ff25ad2a6cd..cae4f3b956c 100644
--- a/etc/PROBLEMS
+++ b/etc/PROBLEMS
@@ -731,15 +731,31 @@ in Emacs, and then try spell-checking again.
731 731
732* Runtime problems related to font handling 732* Runtime problems related to font handling
733 733
734** Under X11, some characters appear as hollow boxes. 734** Characters are displayed as empty boxes or with wrong font under X.
735
736*** This can occur when two different versions of FontConfig are used.
737For example, XFree86 4.3.0 has one version and Gnome usually comes
738with a newer version. Emacs compiled with Gtk+ will then use the
739newer version. In most cases the problem can be temporarily fixed by
740stopping the application that has the error (it can be Emacs or any
741other application), removing ~/.fonts.cache-1, and then start the
742application again. If removing ~/.fonts.cache-1 and restarting
743doesn't help, the application with problem must be recompiled with the
744same version of FontConfig as the rest of the system uses. For KDE,
745it is sufficient to recompile Qt.
746
747*** Some fonts have a missing glyph and no default character. This is
748known to occur for character number 160 (no-break space) in some
749fonts, such as Lucida but Emacs sets the display table for the unibyte
750and Latin-1 version of this character to display a space.
751
752*** Some of the fonts called for in your fontset may not exist on your
753X server.
735 754
736Each X11 font covers just a fraction of the characters that Emacs 755Each X11 font covers just a fraction of the characters that Emacs
737supports. To display the whole range of Emacs characters requires 756supports. To display the whole range of Emacs characters requires
738many different fonts, collected into a fontset. 757many different fonts, collected into a fontset. You can remedy the
739 758problem by installing additional fonts.
740If some of the fonts called for in your fontset do not exist on your X
741server, then the characters that have no font appear as hollow boxes.
742You can remedy the problem by installing additional fonts.
743 759
744The intlfonts distribution includes a full spectrum of fonts that can 760The intlfonts distribution includes a full spectrum of fonts that can
745display all the characters Emacs supports. The etl-unicode collection 761display all the characters Emacs supports. The etl-unicode collection
@@ -748,22 +764,33 @@ of fonts (available from <URL:ftp://ftp.x.org/contrib/fonts/> and
748fonts that can display many Unicode characters; they can also be used 764fonts that can display many Unicode characters; they can also be used
749by ps-print and ps-mule to print Unicode characters. 765by ps-print and ps-mule to print Unicode characters.
750 766
751Another cause of this for specific characters is fonts which have a
752missing glyph and no default character. This is known to occur for
753character number 160 (no-break space) in some fonts, such as Lucida
754but Emacs sets the display table for the unibyte and Latin-1 version
755of this character to display a space.
756
757** Under X11, some characters appear improperly aligned in their lines. 767** Under X11, some characters appear improperly aligned in their lines.
758 768
759You may have bad X11 fonts; try installing the intlfonts distribution 769You may have bad X11 fonts; try installing the intlfonts distribution
760or the etl-unicode collection (see the previous entry). 770or the etl-unicode collection (see above).
771
772** Under X, an unexpected monospace font is used as the default font.
773
774When compiled with XFT, Emacs tries to use a default font named
775"monospace". This is a "virtual font", which the operating system
776(Fontconfig) redirects to a suitable font such as DejaVu Sans Mono.
777On some systems, there exists a font that is actually named Monospace,
778which takes over the virtual font. This is considered an operating
779system bug; see
761 780
762** Certain fonts make each line take one pixel more than it "should". 781http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00696.html
763 782
764This is because these fonts contain characters a little taller 783If you encounter this problem, set the default font to a specific font
765than the font's nominal height. Emacs needs to make sure that 784in your .Xresources or initialization file. For instance, you can put
766lines do not overlap. 785the following in your .Xresources:
786
787Emacs.font: DejaVu Sans Mono 12
788
789** Certain fonts make each line take one pixel more than it should.
790
791This is because these fonts contain characters a little taller than
792the font's nominal height. Emacs needs to make sure that lines do not
793overlap.
767 794
768** Loading fonts is very slow. 795** Loading fonts is very slow.
769 796
@@ -813,20 +840,6 @@ One user on a Linux-based GNU system reported that this problem went
813away with installation of a new X server. The failing server was 840away with installation of a new X server. The failing server was
814XFree86 3.1.1. XFree86 3.1.2 works. 841XFree86 3.1.1. XFree86 3.1.2 works.
815 842
816** Characters are displayed as empty boxes or with wrong font under X.
817
818This can occur when two different versions of FontConfig are used.
819For example, XFree86 4.3.0 has one version and Gnome usually comes
820with a newer version. Emacs compiled with Gtk+ will then use
821the newer version. In most cases the problem can be temporarily
822fixed by stopping the application that has the error (it can be
823Emacs or any other application), removing ~/.fonts.cache-1,
824and then start the application again.
825If removing ~/.fonts.cache-1 and restarting doesn't help, the
826application with problem must be recompiled with the same version
827of FontConfig as the rest of the system uses. For KDE, it is
828sufficient to recompile Qt.
829
830** Emacs pauses for several seconds when changing the default font. 843** Emacs pauses for several seconds when changing the default font.
831 844
832This has been reported for fvwm 2.2.5 and the window manager of KDE 845This has been reported for fvwm 2.2.5 and the window manager of KDE