treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Fontforge

  • Has anyone got this little program to work???

    I tried to install in on windows, and the linux environment program, just stalled. so twice, so its not working on my windows machine... also logged into my linux system, and it wont install under the adept package manager or the rpm

    I can't seem to get this to work, as I would like to convert a font to TTF to add in FLIR for a client (as a nice touch/ it will be the same as their launch newsletter), who's site is going live 13th march...

    can someone help?
  • A much, much easier way is to install Ubuntu under Wubi (Linux under NTFS in a virtual filesystem). This way you get full Linux without dirtying up your Windows installation. The ubuntu developers will have taken care that fontforge runs without stalling.
  • "Matt" said:
    A much, much easier way is to install Ubuntu under Wubi (Linux under NTFS in a virtual filesystem). This way you get full Linux without dirtying up your Windows installation. The ubuntu developers will have taken care that fontforge runs without stalling.


    on my computer I can boot into either windows or kubuntu, but it wont install in kubuntu
  • "ikthius" said:
    on my computer I can boot into either windows or kubuntu, but it wont install in kubuntu


    Aye, ok. You may need to compile from source then.

    Run

    sudo aptitude install build-essential


    to install the necessary build tools. When done:

    sudo aptitude update
    sudo aptitude install libpng12-dev zlibc zlib1g-dev libtiff-dev \
    libungif4-dev libjpeg-dev libxml2-dev libuninameslist-dev \
    xorg-dev subversion cvs gettext git libpango1.0-dev \
    libcairo2-dev


    Next, pull a stable fontforge package:

    cd ~/
    mkdir fontforge
    cd fontforge
    cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge login
    cvs -d:pserver:anonymous@fontforge.cvs.sourceforge.net:/cvsroot/fontforge co fontforge


    Other stuff

    cvs -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freetype login
    cvs -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freetype co freetype2
    cvs -d:pserver:anonymous@cvs.savannah.nongnu.org:/sources/freetype co ft2demos
    svn co http://libspiro.svn.sourceforge.net/svnroot/libspiro/


    Let's assume you have a truetype hinting license from Apple, so we can actually use/make the fonts we need:

    nano freetype2/include/freetype/config/ftoption.h


    Change /* #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER */ to #define TT_CONFIG_OPTION_BYTECODE_INTERPRETER

    Press Control + X Control + Y Return

    Now to compile:

    cd ~/fontforge/libspiro
    ./configure
    make


    if the compile went successfully, with no errors

    sudo make install


    now for the actual meat, fontforge:

    cd ~/fontforge/fontforge/
    ./configure --enable-pyextension --enable-type3 --enable-pasteafter \
    --enable-tilepath --enable-double --enable-device-tables \
    --with-capslock-for-alt --with-freetype-bytecode \
    --with-freetype-src=../freetype2 --with-x --with-pango
    make


    Again, if successful:

    sudo make install


    If all succeeded, you should be able to run with either

    fontforge


    or

    /usr/local/bin/fontforge




    This worked for me back on Gutsy Gibbon, but it should work for Intrepid Ibex also as well as Jaunty Jackalope. Also, I wrote this assuming that you (or anybody else reading) had no previous knowledge, no offense to anybody if it's too easy for them.

    Oh, sauce: http://www.openfontlibrary.org/wiki/Fon ... n.2FUbuntu
  • thanks for your instructions, I will try this soon.....

    although I got linux and have had for a while, I am still really bad at learning it
  • "ikthius" said:
    thanks for your instructions, I will try this soon.....

    although I got linux and have had for a while, I am still really bad at learning it


    You could learn it my way (I took courses on Minix back in school, for which is basic knowledge enough for Linux), or like everyone else, find every possible way to break everything, and then fix it one google at a time. :D