FREETYPE-CONFIG(1)
π FREETYPE-CONFIG β the manual, but make it cute π
okay so bestie, you know how sometimes you gotta build stuff against a library and you're just standing there like π§ "what flags do I even pass"... yeah. this is that page. it's the General Commands Manual entry for freetype-config, and I'm gonna walk you through it like we're texting. no cap.
β¨ NAME β¨
freetype-config β get information about a libfreetype installation π¦
β¨ SYNOPSIS β¨
freetype-config [options]
that's it. that's the whole vibe. options in, info out. π
β¨ DESCRIPTION β¨
so freetype-config is the little helper that hands you the info you need for compiling and linking programs with the FreeType library β think linker flags and compilation parameters, all that good stuff. β¨
alternatively (and honestly this is the part I'm obsessed with), you can use it to query info about the FreeType library that's installed on your system β like the installation (directory path) prefix, or the FreeType version number. it's giving personal assistant but for your build system. π
here's the tea tho: if pkg-config(1) is found in the path, freetype-config acts as a wrapper for pkg-config. so it's lowkey just forwarding the vibes. π
this program is part of the FreeType package. π«Ά
β¨ OPTIONS β¨
there are two types of options, bestie, and you gotta know which is which:
- output/display selection options β pick what info you want printed
- path override options β override where it thinks stuff lives
πΈ Output selection options πΈ
only one of the output selection options should be given at each program invocation. one. singular. don't be greedy. π
--prefixβ returns the prefix value of the installed FreeType library. and btw, the default prefix will be/usrin most cases for distribution-installed packages. iykyk. π--exec-prefixβ returns the executable prefix value of the installed FreeType library. spoiler alert: it'll often be the same as the prefix value. twins fr fr. π--ftversionβ returns the FreeType version number, directly derived from the filefreetype.h. straight from the source, no middleman. β¨--versionβ returns thelibtool versionof the FreeType library. (yes this is a different thing from--ftversion, don't mix them up bestie, I'm begging π)--libtoolβ returns the library name for linking with libtool. π§--libsβ returns compiler flags for linking with the installed FreeType library. π--cflagsβ returns compiler flags for compiling against the installed FreeType library. π οΈ--staticβ makes command line options display flags for static linking. (heads up tho, see the BUGS section below, this one's got a little drama attached π)--helpβ shows help and exits. the classic. always there for you. π«Ά
π Path override options π
these affect any selected output option β with one exception: the libtool version returned by --version. that one doesn't care. iconic of it honestly. π
--prefix=PREFIXβ overrides the--prefixvalue with PREFIX. and plot twist: this also sets--exec-prefix=PREFIXif the option--exec-prefixis not explicitly given. two for one, slay. π--exec-prefix=EPREFIXβ overrides the--exec-prefixvalue with EPREFIX. π¦
π BUGS π
okay this is the part where we get real, because the vibes are NOT immaculate here. π
- in case the libraries FreeType links to are located in non-standard directories, and
pkg-config(1)is not available, the output from option--libsmight be incomplete. so it's thus recommended to use thepkg-config(1)interface instead, which is able to correctly resolve all dependencies. periodt. use the better one. π - setting
--exec-prefix(either explicitly or implicitly β so sneaky or up front, both count) might return incorrect results if combined with option--static. and the same problem can occur if you set theSYSROOTenvironment variable. so like... be aware. be very aware. π«
fr fr: if things look weird with--staticorSYSROOTin the mix, it's not you, it's the known bug. π
π AUTHOR π
this manual page was contributed by Nis Martensen <nis.martensen@web.de>, with further refinements from the FreeType team. credit where credit is due, they ate. π₯
and that's the whole page bestie, we made it to the end π«Ά one last thing β this is FreeType 2.14.3, from March 2026, and that's your little footer moment. go forth and compile responsibly. mwah. πβ¨π
π¦ where this page comes from
- fedora 44: freetype-devel 2.14.3-1.fc44 Β· (FTL OR GPL-2.0-or-later) AND BSD-3-Clause AND MIT AND MIT-Modern-Variant AND LicenseRef-Fedora-Public-Domain AND Zlib
- fedora 44: freetype-devel 2.14.3-1.fc44 Β· (FTL OR GPL-2.0-or-later) AND BSD-3-Clause AND MIT AND MIT-Modern-Variant AND LicenseRef-Fedora-Public-Domain AND Zlib
- nixos 26.05: freetype 2.14.3
- nixpkgs unstable: freetype 2.14.3
- opensuse-leap 16.0: freetype2-devel 2.14.3-160000.1.1 Β· FTL AND GPL-2.0-only
- opensuse-leap 16.0: freetype2-devel 2.14.3-160000.1.1 Β· FTL AND GPL-2.0-only
- opensuse-leap 16.0: freetype2-devel 2.14.3-160000.1.1 Β· FTL AND GPL-2.0-only
- opensuse-leap 16.0: freetype2-devel 2.14.3-160000.1.1 Β· FTL AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms