Skip to content

Commit

Permalink
Allow bitmap fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
Luflosi committed Jun 6, 2020
1 parent 1326532 commit e645e0b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kitty/fast_data_types.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ class FontConfigPattern(TypedDict):

def fc_list(
spacing: int = -1,
allow_bitmapped_fonts: bool = False
allow_bitmapped_fonts: bool = True
) -> Tuple[FontConfigPattern, ...]:
pass

Expand All @@ -433,7 +433,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:
Expand Down
4 changes: 2 additions & 2 deletions kitty/fontconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ font_set(FcFontSet *fs) {

static PyObject*
fc_list(PyObject UNUSED *self, PyObject *args) {
int allow_bitmapped_fonts = 0, spacing = -1;
int allow_bitmapped_fonts = 1, spacing = -1;
PyObject *ans = NULL;
FcObjectSet *os = NULL;
FcPattern *pat = NULL;
Expand Down Expand Up @@ -148,7 +148,7 @@ add_charset(FcPattern *pat, size_t num) {
static PyObject*
fc_match(PyObject UNUSED *self, PyObject *args) {
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;
Expand Down

0 comments on commit e645e0b

Please sign in to comment.