Difference between revisions of "FreeType"

From CBLFS
Jump to navigationJump to search
(I added the package description from BLFS.)
(I added the "Contents" section from BLFS.)
Line 1: Line 1:
 
{| style="text-align: left; background-color: AliceBlue;"
 
{| style="text-align: left; background-color: AliceBlue;"
|-
+
|-valign="top"
 
!Download Source:
 
!Download Source:
 
| http://prdownloads.sourceforge.net/freetype/freetype-2.1.10.tar.bz2
 
| http://prdownloads.sourceforge.net/freetype/freetype-2.1.10.tar.bz2
|-
+
|-valign="top"
 
!Optional Documentation:
 
!Optional Documentation:
 
| http://prdownloads.sourceforge.net/freetype/freetype-doc-2.1.10.tar.bz2
 
| http://prdownloads.sourceforge.net/freetype/freetype-doc-2.1.10.tar.bz2
Line 95: Line 95:
 
  install -v -m755 -d /usr/share/doc/freetype-2.1.10 &&
 
  install -v -m755 -d /usr/share/doc/freetype-2.1.10 &&
 
  cp -v -R docs/* /usr/share/doc/freetype-2.1.10
 
  cp -v -R docs/* /usr/share/doc/freetype-2.1.10
 +
 +
= Contents =
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! Installed Programs:
 +
| freetype-config
 +
|-valign="top"
 +
! Installed Libraries:
 +
| libfreetype.{so,a}
 +
|-valign="top"
 +
! Installed Directories:
 +
| /usr/include/freetype2
 +
|}
 +
 +
=== Short Descriptions ===
 +
 +
{| style="text-align: left;"
 +
|-valign="top"
 +
! freetype-config
 +
| is used to get FreeType compilation and linking information.
 +
|-valign="top"
 +
! libfreetype.{so,a}
 +
| contains functions to add TrueType font capabilities to the X Window system.
 +
|}

Revision as of 20:25, 10 December 2006

Download Source: http://prdownloads.sourceforge.net/freetype/freetype-2.1.10.tar.bz2
Optional Documentation: http://prdownloads.sourceforge.net/freetype/freetype-doc-2.1.10.tar.bz2

Newer versions of FreeType are incompatible with other packages. Please leave FreeType at 2.1.10 unless you've built a fairly complete system against a newer version. For the non-belivers of this warning here is an example. http://pastebin.cross-lfs.org/300


Introduction to FreeType

The FreeType package contains a library to allow applications to properly render TrueType fonts.

Dependencies

Non-Multilib

If you downloaded the additional documentation, unpack it into the source tree using the following command:

tar xf ../freetype-doc-2.1.10.tar.bz2 --strip-components=2 -C docs

This command enables the built-in TrueType bytecode interpreter which in turn enables hinting of TrueType glyphs. Enabling the interpreter results in much better rendering of TrueType fonts.

sed -i -r 's:.*(#.*BYTE.*) .*:\1:' include/freetype/config/ftoption.h

Configure and compile the package:

./configure --prefix=/usr &&
make

Install the package:

make install &&
install -v -m755 -d /usr/share/doc/freetype-2.1.10 &&
cp -v -R docs/* /usr/share/doc/freetype-2.1.10

Multilib

32Bit

This command enables the built-in TrueType bytecode interpreter which in turn enables hinting of TrueType glyphs. Enabling the interpreter results in much better rendering of TrueType fonts.

sed -i -r 's:.*(#.*BYTE.*) .*:\1:' include/freetype/config/ftoption.h

Configure and compile the package:

CC="gcc ${BUILD32}" ./configure --prefix=/usr &&
make

Install the package:

make install &&
mv -v /usr/bin/freetype-config{,-32}

N32

This command enables the built-in TrueType bytecode interpreter which in turn enables hinting of TrueType glyphs. Enabling the interpreter results in much better rendering of TrueType fonts.

sed -i -r 's:.*(#.*BYTE.*) .*:\1:' include/freetype/config/ftoption.h

Configure and compile the package:

CC="gcc ${BUILDN32}" ./configure --prefix=/usr --libdir=/usr/lib32 &&
make

Install the package:

make install &&
mv -v /usr/bin/freetype-config{,-n32}

64Bit

If you downloaded the additional documentation, unpack it into the source tree using the following command:

tar xf ../freetype-doc-2.1.10.tar.bz2 --strip-components=2 -C docs

This command enables the built-in TrueType bytecode interpreter which in turn enables hinting of TrueType glyphs. Enabling the interpreter results in much better rendering of TrueType fonts.

sed -i -r 's:.*(#.*BYTE.*) .*:\1:' include/freetype/config/ftoption.h

Configure and compile the package:

CC="gcc ${BUILD64}" ./configure --prefix=/usr --libdir=/usr/lib64 &&
make

Install the package:

make install &&
mv -v /usr/bin/freetype-config{,-64} &&
ln -sf multiarch_wrapper /usr/bin/freetype-config &&
install -v -m755 -d /usr/share/doc/freetype-2.1.10 &&
cp -v -R docs/* /usr/share/doc/freetype-2.1.10

Contents

Installed Programs: freetype-config
Installed Libraries: libfreetype.{so,a}
Installed Directories: /usr/include/freetype2

Short Descriptions

freetype-config is used to get FreeType compilation and linking information.
libfreetype.{so,a} contains functions to add TrueType font capabilities to the X Window system.