Recompiling FreeType for BCI

Optimal Use of Fonts on Linux
Prev |  | Next

# A. Recompiling FreeType for BCI

"Hinting" is a TrueType specific feature, that is generally considered to be a useful technique that improves the appearance of TrueType fonts. Unfortunately, there are some licensing and patent issues involved with this, and it is disabled by default in the freetype sources! And also quite likely that if you are using vendor supplied binaries, it is disabled there as well.

To enable this feature, the FreeType sources need to be rebuilt.

### On Any System

Look for `include/freetype/config/ftoption.h` file in the freetype source tree, and then search for:

    /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */

And very simply, just uncomment it to make it look like this:

    #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER

### On Red Hat Systems (Fedora Included)

Red Hat users can rebuild the FreeType source RPM package by toggling one setting at the top, and accomplish the same thing (other distributions RPMs use similar methods):

    %define without_bytecode_interpreter    1

And change to:

    %define without_bytecode_interpreter    0

Other vendors may have a similar, easy-to-use mechanism.

Then rebuild and install the finished binaries. Be sure to restart X as well since the freetype code is already loaded into memory by X.

Prev | Home | Next
Glossary |  | Recompiling an RPM Ready for Your Distribution