<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML ><HEAD ><TITLE >Recompiling FreeType for BCI</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK REL="HOME" TITLE="Optimal Use of Fonts on Linux" HREF="index.html"><LINK REL="PREVIOUS" TITLE="Glossary" HREF="glossary.html"><LINK REL="NEXT" TITLE="Recompiling an RPM Ready for Your Distribution" HREF="bcisrcrpm.html"></HEAD ><BODY CLASS="appendix" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >Optimal Use of Fonts on Linux</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="glossary.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="bcisrcrpm.html" ACCESSKEY="N" >Next</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><DIV CLASS="appendix" ><H1 CLASS="appendix" ><A NAME="bci" ></A >A. Recompiling FreeType for BCI</H1 ><P ><SPAN CLASS="QUOTE" >"Hinting"</SPAN > 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.</P ><P >To enable this feature, the FreeType sources need to be rebuilt.</P ><H3 CLASS="BRIDGEHEAD" ><A NAME="AEN1075" ></A >On Any System</H3 ><P >Look for <TT CLASS="filename" >include/freetype/config/ftoption.h</TT > file in the freetype source tree, and then search for:</P ><P > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" >/* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */</PRE ></FONT ></TD ></TR ></TABLE > </P ><P > And very simply, just uncomment it to make it look like this:</P ><P > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" >#define TT_CONFIG_OPTION_BYTECODE_INTERPRETER</PRE ></FONT ></TD ></TR ></TABLE > </P ><H3 CLASS="BRIDGEHEAD" ><A NAME="AEN1083" ></A >On Red Hat Systems (Fedora Included)</H3 ><P > Red Hat users can rebuild the FreeType source RPM package by toggling one setting at the top, and accomplish the same thing (other distributions <SPAN CLASS="acronym" >RPM</SPAN >s use similar methods):</P ><P > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" >%define without_bytecode_interpreter 1</PRE ></FONT ></TD ></TR ></TABLE > </P ><P > And change to:</P ><P > <TABLE BORDER="0" BGCOLOR="#E0E0E0" WIDTH="100%" ><TR ><TD ><FONT COLOR="#000000" ><PRE CLASS="screen" >%define without_bytecode_interpreter 0</PRE ></FONT ></TD ></TR ></TABLE > </P ><P >Other vendors may have a similar, easy-to-use mechanism.</P ><P >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.</P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="glossary.html" ACCESSKEY="P" >Prev</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >Home</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="bcisrcrpm.html" ACCESSKEY="N" >Next</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >Glossary</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" > </TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >Recompiling an RPM Ready for Your Distribution</TD ></TR ></TABLE ></DIV ></BODY ></HTML >