The FreeType2 package contains a library which allows applications to properly render TrueType fonts.
This package has a circular dependency on HarfBuzz-9.0.0, so this package must be installed first, harfBuzz second, then lastly this package again. This is the first pass.
Development versions of GLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://downloads.sourceforge.net/freetype/freetype-2.13.3.tar.xz
Additional Documentation
If you downloaded the additional documentation, unpack it into the source tree using the following command:
tar -xf ../freetype-doc-2.13.3.tar.xz --strip-components=2 -C docs
Install FreeType2 by running the following commands:
sed -ri "s:.*(AUX_MODULES.*valid):\1:" modules.cfg && sed -r "s:.*(#.*SUBPIXEL_RENDERING) .*:\1:" \ -i include/freetype/config/ftoption.h && ./configure --prefix=/usr --enable-freetype-config --disable-static && make
This package does not come with a test suite.
Now, as the root
user:
make install
If you downloaded the optional documentation, install it as the
root
user:
cp -v -R docs -T /usr/share/doc/freetype-2.13.3 && rm -v /usr/share/doc/freetype-2.13.3/freetype-config.1
First clean the directory:
make distclean
Install lib32-FreeType2 by running the following commands:
CC="gcc -m32" CXX="g++ -m32" \ PKG_CONFIG_PATH=/usr/lib32/pkgconfig \ ./configure --prefix=/usr \ --libdir=/usr/lib32 \ --host=i686-pc-linux-gnu \ --enable-freetype-config \ --disable-static make
Now, as the root
user:
make DESTDIR=$PWD/DESTDIR install cp -vr DESTDIR/usr/lib32/* /usr/lib32 rm -rf DESTDIR ldconfig
sed -ri ...: First
command enables GX/AAT and OpenType table validation and second
command enables Subpixel Rendering. Note that Subpixel Rendering
may have patent issues. Be sure to read the 'Other patent issues'
part of https://freetype.org/patents.html
before enabling this option.
--enable-freetype-config
:
This switch ensure that the man page for freetype-config is
installed.
--without-harfbuzz
: If harfbuzz is installed prior to freetype without freetype support, use this switch to avoid a
build failure.
--disable-static
: This
switch prevents installation of static versions of the libraries.