From 56a24879246b4e4ae3bbe496b3e6d0a4443a598d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Sat, 2 Jul 2022 17:05:47 +0100 Subject: [PATCH] meson: add 'default-hinting' option Fixes #244 --- conf.d/meson.build | 2 +- meson.build | 3 +++ meson_options.txt | 4 ++++ 3 files changed, 8 insertions(+), 1 deletion(-) 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')