From b6b38d6f4493a7c5d3bf32574c7f1e1a30102e02 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 18 Jun 2021 08:01:23 +0530 Subject: [PATCH] Linux: Fix emoji/bitmapped fonts not useable in symbol_map --- docs/changelog.rst | 2 ++ kitty/fonts/fontconfig.py | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 9d42cb270..522f54b7b 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -24,6 +24,8 @@ To update |kitty|, :doc:`follow the instructions `. of scrollback is less than a screen and the user has the ``--quit-if-one-screen`` option enabled for less (:iss:`3740`) +- Linux: Fix emoji/bitmapped fonts not useable in symbol_map + 0.21.1 [2021-06-14] ---------------------- diff --git a/kitty/fonts/fontconfig.py b/kitty/fonts/fontconfig.py index fc23972de..de927a42a 100644 --- a/kitty/fonts/fontconfig.py +++ b/kitty/fonts/fontconfig.py @@ -45,7 +45,9 @@ def all_fonts_map(monospaced: bool = True) -> FontMap: if monospaced: ans = fc_list(FC_DUAL) + fc_list(FC_MONO) else: - ans = fc_list() + # allow non-monospaced and bitmapped fonts as these are used for + # symbol_map + ans = fc_list(-1, True) return create_font_map(ans)