1FREETYPE-CONFIG(1) General Commands Manual FREETYPE-CONFIG(1)
2
3
4
6 freetype-config - Get information about a libfreetype installation
7
9 freetype-config [options]
10
12 freetype-config returns information needed for compiling and linking
13 programs with the FreeType library, such as linker flags and compila‐
14 tion parameters. Alternatively, it can be used to query information
15 about the FreeType library version installed on the system, such as the
16 installation (directory path) prefix or the FreeType version number.
17
18 If pkg-config(1) is found in the path, freetype-config acts as a wrap‐
19 per for pkg-config.
20
21 This program is part of the FreeType package.
22
24 There are two types of options: output/display selection options, and
25 path override options.
26
27 Output selection options
28 Only one of the output selection options should be given at each pro‐
29 gram invocation.
30
31 --prefix
32 Return the prefix value of the installed FreeType library (the
33 default prefix will be `/usr' in most cases for distribution-
34 installed packages).
35
36 --exec-prefix
37 Return the executable prefix value of the installed FreeType
38 library (will often be the same as the prefix value).
39
40 --ftversion
41 Return the FreeType version number, directly derived from file
42 `freetype.h'.
43
44 --version
45 Return the `libtool version' of the FreeType library.
46
47 --libtool
48 Return the library name for linking with libtool.
49
50 --libs Return compiler flags for linking with the installed FreeType
51 library.
52
53 --cflags
54 Return compiler flags for compiling against the installed
55 FreeType library.
56
57 --static
58 Make command line options display flags for static linking.
59
60 --help Show help and exit.
61
62 Path override options
63 These affect any selected output option, except the libtool version
64 returned by --version.
65
66 --prefix=PREFIX
67 Override --prefix value with PREFIX. This also sets --exec-pre‐
68 fix=PREFIX if option --exec-prefix is not explicitly given.
69
70 --exec-prefix=EPREFIX
71 Override --exec-prefix value with EPREFIX.
72
74 In case the libraries FreeType links to are located in non-standard
75 directories, and pkg-config(1) is not available, the output from option
76 --libs might be incomplete. It is thus recommended to use the pkg-con‐
77 fig(1) interface instead, which is able to correctly resolve all depen‐
78 dencies.
79
80 Setting --exec-prefix (either explicitly or implicitly) might return
81 incorrect results if combined with option --static. The same problem
82 can occur if you set the SYSROOT environment variable.
83
85 This manual page was contributed by Nis Martensen
86 <nis.martensen@web.de>, with further refinements from the FreeType
87 team.
88
89
90
91FreeType 2.10.1 July 2019 FREETYPE-CONFIG(1)