1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
diff --git a/kitty/fast_data_types.pyi b/kitty/fast_data_types.pyi
index e69d7fa8..ad68c866 100644
--- a/kitty/fast_data_types.pyi
+++ b/kitty/fast_data_types.pyi
@@ -409,7 +409,7 @@
features: NotRequired[Tuple[ParsedFontFeature, ...]]
-def fc_list(spacing: int = -1, allow_bitmapped_fonts: bool = False, only_variable: bool = False) -> Tuple[FontConfigPattern, ...]:
+def fc_list(spacing: int = -1, allow_bitmapped_fonts: bool = True, only_variable: bool = False) -> Tuple[FontConfigPattern, ...]:
pass
@@ -421,7 +421,7 @@ def fc_match(
bold: bool = False,
italic: bool = False,
spacing: int = FC_MONO,
- allow_bitmapped_fonts: bool = False,
+ allow_bitmapped_fonts: bool = True,
size_in_pts: float = 0.,
dpi: float = 0.
) -> FontConfigPattern:
diff --git a/kitty/fontconfig.c b/kitty/fontconfig.c
index 7156d9ee..6444d6bc 100644
--- a/kitty/fontconfig.c
+++ b/kitty/fontconfig.c
@@ -240,7 +240,7 @@
static PyObject*
fc_list(PyObject UNUSED *self, PyObject *args, PyObject *kw) {
ensure_initialized();
- int allow_bitmapped_fonts = 0, spacing = -1, only_variable = 0;
+ int allow_bitmapped_fonts = 1, spacing = -1, only_variable = 0;
PyObject *ans = NULL;
FcObjectSet *os = NULL;
FcPattern *pat = NULL;
@@ -354,7 +354,7 @@
fc_match(PyObject UNUSED *self, PyObject *args) {
ensure_initialized();
char *family = NULL;
- int bold = 0, italic = 0, allow_bitmapped_fonts = 0, spacing = FC_MONO;
+ int bold = 0, italic = 0, allow_bitmapped_fonts = 1, spacing = FC_MONO;
double size_in_pts = 0, dpi = 0;
FcPattern *pat = NULL;
PyObject *ans = NULL;
|