1config BR2_PACKAGE_FCFT
2	bool "fcft"
3	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL # C11 threads
4	select BR2_PACKAGE_FONTCONFIG
5	select BR2_PACKAGE_FREETYPE
6	select BR2_PACKAGE_PIXMAN
7	select BR2_PACKAGE_TLLIST
8	help
9	  A simple library for font loading and glyph rasterization
10	  using FontConfig, FreeType and pixman.
11
12	  https://codeberg.org/dnkl/fcft
13
14if BR2_PACKAGE_FCFT
15
16config BR2_PACKAGE_FCFT_GRAPHEME_SHAPING
17	bool "grapheme-shaping"
18	depends on BR2_INSTALL_LIBSTDCPP # harfbuzz
19	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # harfbuzz
20	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # harfbuzz
21	select BR2_PACKAGE_HARFBUZZ
22	help
23	  Enables shaping of individual grapheme clusters
24
25comment "grapheme-shaping needs a toolchain w/ C++, gcc >= 4.9"
26	depends on BR2_TOOLCHAIN_HAS_SYNC_4
27	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
28
29config BR2_PACKAGE_FCFT_RUN_SHAPING
30	bool "run-shaping"
31	depends on BR2_INSTALL_LIBSTDCPP # harfbuzz
32	depends on BR2_TOOLCHAIN_HAS_SYNC_4 # harfbuzz
33	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_9 # harfbuzz
34	select BR2_PACKAGE_HARFBUZZ
35	select BR2_PACKAGE_UTF8PROC
36	help
37	  Enables shaping of whole text runs.
38
39comment "run-shaping needs a toolchain w/ C++, gcc >= 4.9"
40	depends on BR2_TOOLCHAIN_HAS_SYNC_4
41	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_9
42
43config BR2_PACKAGE_FCFT_SVG_SUPPORT
44	bool "svg support"
45	help
46	  Enables svg support. This option increases the size of the
47	  library by approximately 55KB.
48
49endif # BR2_PACKAGE_FCFT
50
51comment "fcft needs a glibc or musl toolchain"
52	depends on !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
53