mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 06:36:24 +00:00
Linux: Use libfontconfig directly instead of calling fc-match
There are apparently some linux systems out there with versions of fontconfig that do not understanf the :charset query when passed to fc-match. See #46
This commit is contained in:
parent
882a4f2ab3
commit
02ef3c6dc8
6 changed files with 125 additions and 12 deletions
6
setup.py
6
setup.py
|
|
@ -106,8 +106,8 @@ def init_env(debug=False, asan=False):
|
|||
if isosx:
|
||||
font_libs = ['-framework', 'CoreText', '-framework', 'CoreGraphics']
|
||||
else:
|
||||
cflags.extend(pkg_config('freetype2', '--cflags-only-I'))
|
||||
font_libs = pkg_config('freetype2', '--libs')
|
||||
cflags.extend(pkg_config('fontconfig', '--cflags-only-I'))
|
||||
font_libs = pkg_config('fontconfig', '--libs')
|
||||
cflags.extend(pkg_config('glfw3', '--cflags-only-I'))
|
||||
ldflags.append('-shared')
|
||||
pylib = get_python_flags(cflags)
|
||||
|
|
@ -190,7 +190,7 @@ def option_parser():
|
|||
def find_c_files():
|
||||
ans, headers = [], []
|
||||
d = os.path.join(base, 'kitty')
|
||||
exclude = {'freetype.c'} if isosx else {'core_text.m'}
|
||||
exclude = {'freetype.c', 'fontconfig.c'} if isosx else {'core_text.m'}
|
||||
for x in os.listdir(d):
|
||||
ext = os.path.splitext(x)[1]
|
||||
if ext in ('.c', '.m') and os.path.basename(x) not in exclude:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue