Skip to content

Commit e645e0b

Browse files
committed
Allow bitmap fonts
1 parent 1326532 commit e645e0b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

kitty/fast_data_types.pyi

+2-2
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class FontConfigPattern(TypedDict):
423423

424424
def fc_list(
425425
spacing: int = -1,
426-
allow_bitmapped_fonts: bool = False
426+
allow_bitmapped_fonts: bool = True
427427
) -> Tuple[FontConfigPattern, ...]:
428428
pass
429429

@@ -433,7 +433,7 @@ def fc_match(
433433
bold: bool = False,
434434
italic: bool = False,
435435
spacing: int = FC_MONO,
436-
allow_bitmapped_fonts: bool = False,
436+
allow_bitmapped_fonts: bool = True,
437437
size_in_pts: float = 0.,
438438
dpi: float = 0.
439439
) -> FontConfigPattern:

kitty/fontconfig.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ font_set(FcFontSet *fs) {
8484

8585
static PyObject*
8686
fc_list(PyObject UNUSED *self, PyObject *args) {
87-
int allow_bitmapped_fonts = 0, spacing = -1;
87+
int allow_bitmapped_fonts = 1, spacing = -1;
8888
PyObject *ans = NULL;
8989
FcObjectSet *os = NULL;
9090
FcPattern *pat = NULL;
@@ -148,7 +148,7 @@ add_charset(FcPattern *pat, size_t num) {
148148
static PyObject*
149149
fc_match(PyObject UNUSED *self, PyObject *args) {
150150
char *family = NULL;
151-
int bold = 0, italic = 0, allow_bitmapped_fonts = 0, spacing = FC_MONO;
151+
int bold = 0, italic = 0, allow_bitmapped_fonts = 1, spacing = FC_MONO;
152152
double size_in_pts = 0, dpi = 0;
153153
FcPattern *pat = NULL;
154154
PyObject *ans = NULL;

0 commit comments

Comments
 (0)