thorvg/src/loaders/meson.build
Hermet Park 03c53d3227 loader/ttf: introduce a new sfnt(scalable font) loader.
ttf is an industry standard format that is the most widely used
in the products. Now thorvg supports the basic features of
the font to supplement the text drawing.

The implementation is followed the ttf spec,
the covered features are:

- horizontal layouting with kerning.
- utf8 -> utf32 converted glyph drawing.

To use the feature, please enable ttf loader:
$meson -Dloaders="ttf_beta, ..."

@Issue: https://github.com/thorvg/thorvg/issues/969
2024-01-02 20:34:11 +09:00

54 lines
1.2 KiB
Meson

subloader_dep = []
if all_loaders or get_option('loaders').contains('tvg') == true
subdir('tvg')
endif
if all_loaders or get_option('loaders').contains('svg') == true
subdir('svg')
endif
if get_option('loaders').contains('ttf_beta') == true
subdir('ttf')
endif
if all_loaders or get_option('loaders').contains('lottie') == true
subdir('lottie')
endif
if all_loaders or get_option('loaders').contains('png') == true
if get_option('static') == true
subdir('png')
else
subdir('external_png')
if not png_dep.found()
subdir('png')
endif
endif
endif
if all_loaders or get_option('loaders').contains('jpg') == true
if get_option('static') == true
subdir('jpg')
else
subdir('external_jpg')
if not jpg_dep.found()
subdir('jpg')
endif
endif
endif
if get_option('loaders').contains('webp_beta') == true
if get_option('static') == true
message('static webp is not available, disable webp_beta loader.')
else
subdir('external_webp')
endif
endif
subdir('raw')
loader_dep = declare_dependency(
dependencies: subloader_dep,
include_directories : include_directories('.'),
)