diff options
| author | Chong Yidong | 2008-10-25 17:19:12 +0000 |
|---|---|---|
| committer | Chong Yidong | 2008-10-25 17:19:12 +0000 |
| commit | b1446261ab54d6e3d7d76d5ae4367b295efb7d09 (patch) | |
| tree | 4e2fa679877f53caf7898c7115933822b85e0471 /etc | |
| parent | 8cd56959b43bd4e1ed5df42f2228b3302ea52812 (diff) | |
| download | emacs-b1446261ab54d6e3d7d76d5ae4367b295efb7d09.tar.gz emacs-b1446261ab54d6e3d7d76d5ae4367b295efb7d09.zip | |
Document monospace font problems.
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/PROBLEMS | 75 |
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. | ||
| 737 | For example, XFree86 4.3.0 has one version and Gnome usually comes | ||
| 738 | with a newer version. Emacs compiled with Gtk+ will then use the | ||
| 739 | newer version. In most cases the problem can be temporarily fixed by | ||
| 740 | stopping the application that has the error (it can be Emacs or any | ||
| 741 | other application), removing ~/.fonts.cache-1, and then start the | ||
| 742 | application again. If removing ~/.fonts.cache-1 and restarting | ||
| 743 | doesn't help, the application with problem must be recompiled with the | ||
| 744 | same version of FontConfig as the rest of the system uses. For KDE, | ||
| 745 | it is sufficient to recompile Qt. | ||
| 746 | |||
| 747 | *** Some fonts have a missing glyph and no default character. This is | ||
| 748 | known to occur for character number 160 (no-break space) in some | ||
| 749 | fonts, such as Lucida but Emacs sets the display table for the unibyte | ||
| 750 | and 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 | ||
| 753 | X server. | ||
| 735 | 754 | ||
| 736 | Each X11 font covers just a fraction of the characters that Emacs | 755 | Each X11 font covers just a fraction of the characters that Emacs |
| 737 | supports. To display the whole range of Emacs characters requires | 756 | supports. To display the whole range of Emacs characters requires |
| 738 | many different fonts, collected into a fontset. | 757 | many different fonts, collected into a fontset. You can remedy the |
| 739 | 758 | problem by installing additional fonts. | |
| 740 | If some of the fonts called for in your fontset do not exist on your X | ||
| 741 | server, then the characters that have no font appear as hollow boxes. | ||
| 742 | You can remedy the problem by installing additional fonts. | ||
| 743 | 759 | ||
| 744 | The intlfonts distribution includes a full spectrum of fonts that can | 760 | The intlfonts distribution includes a full spectrum of fonts that can |
| 745 | display all the characters Emacs supports. The etl-unicode collection | 761 | display 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 | |||
| 748 | fonts that can display many Unicode characters; they can also be used | 764 | fonts that can display many Unicode characters; they can also be used |
| 749 | by ps-print and ps-mule to print Unicode characters. | 765 | by ps-print and ps-mule to print Unicode characters. |
| 750 | 766 | ||
| 751 | Another cause of this for specific characters is fonts which have a | ||
| 752 | missing glyph and no default character. This is known to occur for | ||
| 753 | character number 160 (no-break space) in some fonts, such as Lucida | ||
| 754 | but Emacs sets the display table for the unibyte and Latin-1 version | ||
| 755 | of 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 | ||
| 759 | You may have bad X11 fonts; try installing the intlfonts distribution | 769 | You may have bad X11 fonts; try installing the intlfonts distribution |
| 760 | or the etl-unicode collection (see the previous entry). | 770 | or the etl-unicode collection (see above). |
| 771 | |||
| 772 | ** Under X, an unexpected monospace font is used as the default font. | ||
| 773 | |||
| 774 | When 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. | ||
| 777 | On some systems, there exists a font that is actually named Monospace, | ||
| 778 | which takes over the virtual font. This is considered an operating | ||
| 779 | system bug; see | ||
| 761 | 780 | ||
| 762 | ** Certain fonts make each line take one pixel more than it "should". | 781 | http://lists.gnu.org/archive/html/emacs-devel/2008-10/msg00696.html |
| 763 | 782 | ||
| 764 | This is because these fonts contain characters a little taller | 783 | If you encounter this problem, set the default font to a specific font |
| 765 | than the font's nominal height. Emacs needs to make sure that | 784 | in your .Xresources or initialization file. For instance, you can put |
| 766 | lines do not overlap. | 785 | the following in your .Xresources: |
| 786 | |||
| 787 | Emacs.font: DejaVu Sans Mono 12 | ||
| 788 | |||
| 789 | ** Certain fonts make each line take one pixel more than it should. | ||
| 790 | |||
| 791 | This is because these fonts contain characters a little taller than | ||
| 792 | the font's nominal height. Emacs needs to make sure that lines do not | ||
| 793 | overlap. | ||
| 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 | |||
| 813 | away with installation of a new X server. The failing server was | 840 | away with installation of a new X server. The failing server was |
| 814 | XFree86 3.1.1. XFree86 3.1.2 works. | 841 | XFree86 3.1.1. XFree86 3.1.2 works. |
| 815 | 842 | ||
| 816 | ** Characters are displayed as empty boxes or with wrong font under X. | ||
| 817 | |||
| 818 | This can occur when two different versions of FontConfig are used. | ||
| 819 | For example, XFree86 4.3.0 has one version and Gnome usually comes | ||
| 820 | with a newer version. Emacs compiled with Gtk+ will then use | ||
| 821 | the newer version. In most cases the problem can be temporarily | ||
| 822 | fixed by stopping the application that has the error (it can be | ||
| 823 | Emacs or any other application), removing ~/.fonts.cache-1, | ||
| 824 | and then start the application again. | ||
| 825 | If removing ~/.fonts.cache-1 and restarting doesn't help, the | ||
| 826 | application with problem must be recompiled with the same version | ||
| 827 | of FontConfig as the rest of the system uses. For KDE, it is | ||
| 828 | sufficient 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 | ||
| 832 | This has been reported for fvwm 2.2.5 and the window manager of KDE | 845 | This has been reported for fvwm 2.2.5 and the window manager of KDE |