1. Home
  2. Computing & Technology
  3. Linux

Optimal Use of Fonts on Linux

From Authors, About.com Guest


   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 RPM s 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


* License

* Optimal Use of Fonts on Linux Index

Explore Linux
About.com Special Features

Holiday Central

What to eat, where to go, fun things to do and how to save money on the perfect gifts. More >

Family Tech Center

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

  1. Home
  2. Computing & Technology
  3. Linux
  4. Linux HowTos
  5. Optimal Use of Fonts
  6. Optimal Use of Fonts on Linux - Recompiling FreeType for BCI

©2009 About.com, a part of The New York Times Company.

All rights reserved.