freetype-config - Get information about a libfreetype installation
freetype-config [options]
FREETYPE-CONFIG(1) General Commands Manual FREETYPE-CONFIG(1)
NAME
freetype-config - Get information about a libfreetype installation
SYNOPSIS
freetype-config [options]
DESCRIPTION
freetype-config returns information needed for compiling and linking
programs with the FreeType library, such as linker flags and compila-
tion parameters. Alternatively, it can be used to query information
about the FreeType library version installed on the system, such as the
installation (directory path) prefix or the FreeType version number.
If pkg-config(1) is found in the path, freetype-config acts as a wrap-
per for pkg-config.
This program is part of the FreeType package.
OPTIONS
There are two types of options: output/display selection options, and
path override options.
Output selection options
Only one of the output selection options should be given at each pro-
gram invocation.
--prefix
Return the prefix value of the installed FreeType library (the
default prefix will be `/usr' in most cases for distribution-
installed packages).
--exec-prefix
Return the executable prefix value of the installed FreeType
library (will often be the same as the prefix value).
--ftversion
Return the FreeType version number, directly derived from file
`freetype.h'.
--version
Return the `libtool version' of the FreeType library.
--libtool
Return the library name for linking with libtool.
--libs Return compiler flags for linking with the installed FreeType
library.
--cflags
Return compiler flags for compiling against the installed
FreeType library.
--static
Make command line options display flags for static linking.
--help Show help and exit.
Path override options
These affect any selected output option, except the libtool version
returned by --version.
--prefix=PREFIX
Override --prefix value with PREFIX. This also sets --exec-pre-
fix=PREFIX if option --exec-prefix is not explicitly given.
--exec-prefix=EPREFIX
Override --exec-prefix value with EPREFIX.
BUGS
In case the libraries FreeType links to are located in non-standard
directories, and pkg-config(1) is not available, the output from option
--libs might be incomplete. It is thus recommended to use the pkg-con-
fig(1) interface instead, which is able to correctly resolve all depen-
dencies.
Setting --exec-prefix (either explicitly or implicitly) might return
incorrect results if combined with option --static. The same problem
can occur if you set the SYSROOT environment variable.
AUTHOR
This manual page was contributed by Nis Martensen
<nis.martensen@web.de>, with further refinements from the FreeType
team.
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+---------------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+---------------------------+
|Availability | system/library/freetype-2 |
+---------------+---------------------------+
|Stability | Obsolete |
+---------------+---------------------------+
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://download.savan-
nah.gnu.org/releases/freetype/freetype-2.11.1.tar.xz.
Further information about this software can be found on the open source
community website at https://www.freetype.org/.
FreeType 2.11.1 December 2021 FREETYPE-CONFIG(1)