-
Notifications
You must be signed in to change notification settings - Fork 7
Building Freetype
-
Activate the toolchain:
source util/activate.sh
-
Obtain Freetype sources. This been tested with Freetype 2.9.1, so that is recommended.
-
Patch
builds/unix/config.sub
to support ToaruOS:Find the line
| -aos* | -aros* | -cloudabi* | -sortix* \
and add a new line| -toaru * \
after it. -
Configure in a new directory:
PKG_CONFIG_LIBDIR=${TOOLCHAIN}/../base/usr/lib/pkg-config ../freetype-2.9.1/configure \ --host=i686-pc-toaru --prefix=/usr --with-png=no
-
Edit
libtool
to add support for building shared objects for ToaruOS.Set
build_libtool_libs=yes
. Setlibrary_names_spec
andsoname_spec
to"\$libname\$release\$shared_ext"
-
make
-
make DESTDIR=${TOOLCHAIN}/../base install
-
Return to your ToaruOS-NIH source directory and
make ext-freetype
to build the Freetype extension. -
Install fonts to
base/usr/share/fonts
- you can get these from the ToaruOS mainline repository. -
Run
make run
and confirm that the terminal starts and uses Freetype for rendering.
Newer Freetype defaults to a different renderer. To get the same classic hinted rendering as ToaruOS mainline, you can export FREETYPE_PROPERTIES="truetype:interpreter-version=35 cff:no-stem-darkening=1 autofitter:warping=1"
(within ToaruOS).