Linux FAQ's & Manuals


switching the byte code interpreter in freetype2 on or off

the freetype2 package on suse linux 8.2 is compiled with the byte code interpreter switched off because the quality of the auto-hinter in freetype > = 2.1.3 is so good that it usually gives better results than using the native truetype hinting especially when using anti-aliasing.

see also the explanation in http://www.freetype.org/freetype2/2.1.3-explained.html:

``do i still need to enable the truetype bytecode interpreter?''.

if you nevertheless want to switch the byte code interpreter on, you have to recompile the freetype2 package. unfortunately it is not yet possible to choose between the byte code interpreter and the auto-hinter with a run-time option.

but note that you may need a license by apple to use the byte code interpreter! for more details about the patent issues involved please refer to http://www.freetype.org/patents.html.

if you want to switch the byte code interpreter on, please do the following:

as root, install the source rpm of freetype2:

     ~$ rpm -i freetype2.spm     ~$ cd /usr/src/packages/specs 

you'll find the spec file freetype2.spec there. load it into an editor and search for the %setup section. there is a comment at the beginning of the %setup section explaining how to enable the byte code interpreter. after following the instructions in that comment, rebuild the freetype2 package:

     ~$ rpm -ba freetype2.spec 

install the newly built freetype2 packages:

     ~$ rpm -uhv /usr/src/packages/rpms/i386/freetype2*rpm 

2005-03-09