diff options
| author | Po Lu | 2022-05-19 20:10:19 +0800 |
|---|---|---|
| committer | Po Lu | 2022-05-19 20:10:19 +0800 |
| commit | c15430997679fced7ef6adc23cbc59d0cfa3d625 (patch) | |
| tree | 43b014a1790c32856e815d5d516b050a442aade7 /etc/PROBLEMS | |
| parent | 0a4d9f26ee9b24ecf0a8b1fb14d4b4bab5daa3ae (diff) | |
| download | emacs-c15430997679fced7ef6adc23cbc59d0cfa3d625.tar.gz emacs-c15430997679fced7ef6adc23cbc59d0cfa3d625.zip | |
Whitelist some incorrectly labeled "color" fonts under Xft
* etc/PROBLEMS: Document problem with fonts incorrectly labeled
as color fonts under Xft.
* src/ftfont.c (xft_color_font_whitelisted_p): New function.
(ftfont_spec_pattern, ftfont_list): Respect whitelisting of
"color" fonts under Xft.
* src/xftfont.c (syms_of_xftfont): New variable
`xft-color-font-whitelist'.
Diffstat (limited to 'etc/PROBLEMS')
| -rw-r--r-- | etc/PROBLEMS | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/etc/PROBLEMS b/etc/PROBLEMS index 3e0b73a4d59..4224171298e 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS | |||
| @@ -805,6 +805,22 @@ to take advantage of. | |||
| 805 | 805 | ||
| 806 | * Runtime problems related to font handling | 806 | * Runtime problems related to font handling |
| 807 | 807 | ||
| 808 | ** Some fonts are detected but not usable under Xft. | ||
| 809 | |||
| 810 | Some fonts might not be usable under Emacs even though they show up in | ||
| 811 | the font family list when Emacs is built with Xft. This is because | ||
| 812 | Emacs prevents fonts that have color glyphs (such as color Emoji) from | ||
| 813 | being used, since they typically cause Xft crashes. | ||
| 814 | |||
| 815 | On some GNU/Linux systems, fonts (such as Source Code Pro) that do not | ||
| 816 | have color glyphs are reported as color fonts, causing them to be | ||
| 817 | unavailable when using Xft. This is known to happen under Fedora | ||
| 818 | GNU/Linux 36 or later, and possibly other distributions as well. | ||
| 819 | |||
| 820 | If you encounter a such a font, you can enable it while ignoring other | ||
| 821 | fonts that actually have color glyphs by adding its family name to the | ||
| 822 | list `xft-color-font-whitelist'. | ||
| 823 | |||
| 808 | ** Characters are displayed as empty boxes or with wrong font under X. | 824 | ** Characters are displayed as empty boxes or with wrong font under X. |
| 809 | 825 | ||
| 810 | *** This may be due to your local fontconfig customization. | 826 | *** This may be due to your local fontconfig customization. |