FREETYPE-CONFIG(1)

πŸ“¦
version 2.14.3 Β· 5 versions
, in fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0

πŸ’– 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 /usr in 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 file freetype.h. straight from the source, no middleman. ✨
  • --version β€” returns the libtool version of 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 --prefix value with PREFIX. and plot twist: this also sets --exec-prefix=PREFIX if the option --exec-prefix is not explicitly given. two for one, slay. πŸŽ€
  • --exec-prefix=EPREFIX β€” overrides the --exec-prefix value 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 --libs might be incomplete. so it's thus recommended to use the pkg-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 the SYSROOT environment variable. so like... be aware. be very aware. 🫠
fr fr: if things look weird with --static or SYSROOT in 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