diff options
author | Tim-Philipp Müller <tim@centricular.com> | 2022-07-02 17:05:47 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2022-07-02 19:00:41 +0100 |
commit | 56a24879246b4e4ae3bbe496b3e6d0a4443a598d (patch) | |
tree | 947e2e3aec5b5f85ef34612f0009a16cc265fe25 | |
parent | fd0753af88f746fd3d729bf6e1df08eefeeaa3ac (diff) | |
download | fontconfig-56a24879246b4e4ae3bbe496b3e6d0a4443a598d.tar.gz |
meson: add 'default-hinting' option
Fixes #244
-rw-r--r-- | conf.d/meson.build | 2 | ||||
-rw-r--r-- | meson.build | 3 | ||||
-rw-r--r-- | meson_options.txt | 4 |
3 files changed, 8 insertions, 1 deletions
diff --git a/conf.d/meson.build b/conf.d/meson.build index dbb1606..1ccddc2 100644 --- a/conf.d/meson.build +++ b/conf.d/meson.build @@ -38,7 +38,7 @@ conf_files = [ '90-synthetic.conf', ] -preferred_hinting = 'slight' +preferred_hinting = get_option('default-hinting') conf_links = [ '10-hinting-@0@.conf'.format(preferred_hinting), diff --git a/meson.build b/meson.build index ab0fb13..cf21eb1 100644 --- a/meson.build +++ b/meson.build @@ -395,3 +395,6 @@ summary({ 'Tests': not get_option('tests').disabled(), 'Tools': not get_option('tools').disabled(), }, section: 'General', bool_yn: true, list_sep: ', ') +summary({ + 'Hinting': get_option('default-hinting'), + }, section: 'Defaults', bool_yn: true, list_sep: ', ') diff --git a/meson_options.txt b/meson_options.txt index b70edf1..3cad85a 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -13,3 +13,7 @@ option('tools', type : 'feature', value : 'auto', yield : true, description: 'Build command-line tools (fc-list, fc-query, etc.)') option('cache-build', type : 'feature', value : 'enabled', description: 'Run fc-cache on install') + +# Defaults +option('default-hinting', type: 'combo', choices: ['none', 'slight', 'medium', 'full'], value: 'slight', + description: 'Preferred hinting configuration') |