[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A libFL wrapper to libfreetype



Hi inventors,

While waiting for the clearance to release libFL.a (if
ever?), I created an empty stub flclient.c and wrote some
quick and dirty code to interface it with libfreetype.a.
Now in its inital working state, SoText3, SoAsciiText,
and SoText2 are able to work with it, though only briefly
tested with freetype2-beta4 and a few fonts. Here are
screenshots of textomatic and SceneViewer  using it.

I've uploaded binary libraries for Linux-x86  libFL.a.gz,
libfreetype.a.gz , and source  libFL-src2.tgz  The
following is a brief compilation instruction:

1. Build and install libfreetype.a using freetype2-beta4.tgz
2. Build libFL.a wrapper for libfreetype.a
    $ cd $IV_ROOT/libFL/src2
    $ tar zxvf libFL-src2.tgz
    $ cd src2
    $ make
3. Link libInventor.so against new libFL.a and /usr/local/lib/libfreetype.a
4. Set FL_FONT_PATH to a directory where TrueType fonts are available.
    $ export FL_FONT_PATH=/usr/share/data/fonts
5. Make symbolic link of TrueType font files to Inventor's font names
    $ cd /usr/share/data/fonts
    $ ln -s times.ttf Times-Roman
    $ ln -s arial.ttf Helvetica
    $ ln -s cour.ttf Utopia-Regular

I'll be working on the freetype interface, so please let
me know if you're bitten by bugs, or have comments
on its implementation.

Regards,
Ang Bodhi