2020-07-31 09:26:11 +02:00
|
|
|
conf_files = [
|
|
|
|
'05-reset-dirs-sample.conf',
|
|
|
|
'09-autohint-if-no-hinting.conf',
|
|
|
|
'10-autohint.conf',
|
|
|
|
'10-hinting-full.conf',
|
|
|
|
'10-hinting-medium.conf',
|
|
|
|
'10-hinting-none.conf',
|
|
|
|
'10-hinting-slight.conf',
|
2022-10-14 14:23:14 +02:00
|
|
|
'10-no-antialias.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'10-scale-bitmap-fonts.conf',
|
|
|
|
'10-sub-pixel-bgr.conf',
|
2022-11-28 09:40:43 +01:00
|
|
|
'10-sub-pixel-none.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'10-sub-pixel-rgb.conf',
|
|
|
|
'10-sub-pixel-vbgr.conf',
|
|
|
|
'10-sub-pixel-vrgb.conf',
|
|
|
|
'10-unhinted.conf',
|
2022-10-14 14:23:14 +02:00
|
|
|
'10-yes-antialias.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'11-lcdfilter-default.conf',
|
|
|
|
'11-lcdfilter-legacy.conf',
|
|
|
|
'11-lcdfilter-light.conf',
|
2023-03-21 15:56:01 +01:00
|
|
|
'11-lcdfilter-none.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'20-unhint-small-vera.conf',
|
|
|
|
'25-unhint-nonlatin.conf',
|
|
|
|
'30-metric-aliases.conf',
|
|
|
|
'40-nonlatin.conf',
|
|
|
|
'45-generic.conf',
|
|
|
|
'45-latin.conf',
|
2021-08-21 16:03:28 +02:00
|
|
|
'48-spacing.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'49-sansserif.conf',
|
|
|
|
'50-user.conf',
|
|
|
|
'51-local.conf',
|
|
|
|
'60-generic.conf',
|
|
|
|
'60-latin.conf',
|
|
|
|
'65-fonts-persian.conf',
|
|
|
|
'65-khmer.conf',
|
|
|
|
'65-nonlatin.conf',
|
|
|
|
'69-unifont.conf',
|
|
|
|
'70-no-bitmaps.conf',
|
|
|
|
'70-yes-bitmaps.conf',
|
|
|
|
'80-delicious.conf',
|
|
|
|
'90-synthetic.conf',
|
|
|
|
]
|
|
|
|
|
2022-07-02 18:05:47 +02:00
|
|
|
preferred_hinting = get_option('default-hinting')
|
2022-11-28 09:40:43 +01:00
|
|
|
preferred_sub_pixel_rendering = get_option('default-sub-pixel-rendering')
|
2020-07-31 09:26:11 +02:00
|
|
|
|
|
|
|
conf_links = [
|
|
|
|
'10-hinting-@0@.conf'.format(preferred_hinting),
|
|
|
|
'10-scale-bitmap-fonts.conf',
|
2022-11-28 09:40:43 +01:00
|
|
|
'10-sub-pixel-@0@.conf'.format(preferred_sub_pixel_rendering),
|
2022-10-14 14:23:14 +02:00
|
|
|
'10-yes-antialias.conf',
|
2021-07-19 14:03:20 +02:00
|
|
|
'11-lcdfilter-default.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'20-unhint-small-vera.conf',
|
|
|
|
'30-metric-aliases.conf',
|
|
|
|
'40-nonlatin.conf',
|
|
|
|
'45-generic.conf',
|
|
|
|
'45-latin.conf',
|
2021-08-21 16:03:28 +02:00
|
|
|
'48-spacing.conf',
|
2020-07-31 09:26:11 +02:00
|
|
|
'49-sansserif.conf',
|
|
|
|
'50-user.conf',
|
|
|
|
'51-local.conf',
|
|
|
|
'60-generic.conf',
|
|
|
|
'60-latin.conf',
|
|
|
|
'65-fonts-persian.conf',
|
|
|
|
'65-nonlatin.conf',
|
|
|
|
'69-unifont.conf',
|
|
|
|
'80-delicious.conf',
|
|
|
|
'90-synthetic.conf',
|
|
|
|
]
|
|
|
|
|
2022-06-20 23:40:14 +02:00
|
|
|
install_data(conf_files, install_dir: fc_templatedir)
|
2020-07-31 09:26:11 +02:00
|
|
|
|
2022-06-20 23:40:14 +02:00
|
|
|
meson.add_install_script('link_confs.py', fc_templatedir,
|
2022-06-20 23:53:51 +02:00
|
|
|
fc_configdir,
|
2020-07-31 09:26:11 +02:00
|
|
|
conf_links,
|
|
|
|
)
|
|
|
|
|
|
|
|
# 35-lang-normalize.conf
|
|
|
|
orths = []
|
|
|
|
foreach o : orth_files # orth_files is from fc-lang/meson.build
|
|
|
|
o = o.split('.')[0] # strip filename suffix
|
|
|
|
if not o.contains('_') # ignore those with an underscore
|
|
|
|
orths += [o]
|
|
|
|
endif
|
|
|
|
endforeach
|
|
|
|
|
|
|
|
custom_target('35-lang-normalize.conf',
|
|
|
|
output: '35-lang-normalize.conf',
|
|
|
|
command: [find_program('write-35-lang-normalize-conf.py'), ','.join(orths), '@OUTPUT@'],
|
2022-06-20 23:40:14 +02:00
|
|
|
install_dir: fc_templatedir,
|
2020-07-31 09:26:11 +02:00
|
|
|
install: true)
|
|
|
|
|
|
|
|
# README
|
|
|
|
readme_cdata = configuration_data()
|
|
|
|
readme_cdata.set('TEMPLATEDIR', fc_templatedir)
|
|
|
|
configure_file(output: 'README',
|
|
|
|
input: 'README.in',
|
|
|
|
configuration: readme_cdata,
|
2022-06-20 23:53:51 +02:00
|
|
|
install_dir: fc_configdir,
|
2020-07-31 09:26:11 +02:00
|
|
|
install: true)
|