6 Replies Latest reply on Sep 2, 2016 1:20 AM by helmahmoudi

    Install new Fonts to Document Preview

    gangadhareswara

      Hi,

       

      From the documentation Jive 6.0 Community Administrator Documentation,

      In documentation people have mentioned that we have to add true type fonts in two places

      i.e

      /usr/local/share/swftools/fonts/

      /usr/local/jive/opt/openoffice.org2.4/share/fonts/

       

      But i could not see any of those locations . But i can see the font file location as follows /usr/local/jive/opt/libreoffice3.5/share/fonts/truetype.

       

      Is this correct path to copy new font files ?

       

      Please anyone can confirm the correct location to place the new font files and whether i have to keep the files in two locations or one location is fine.

       

       

      Regards,

      Gangadhareswara Rao

        • Re: Install new Fonts to Document Preview
          dougmackay

          Hi,

          Wow, this is an OLD thread.  Just wanted to let you know there IS a way to get fonts installed outside of the libreoffice directory structure. This protects you for upgrades later down the road.

           

          1. Create font directory:

          $ mkdir /usr/share/fonts/default/TrueType

           

          2. Put the fonts in there. This could be sftp or whatever you want to do. 

           

          3. Create font files:

          $ cd /usr/share/fonts/default/TrueType

          $ ttmkfdir

          $ mkfontdir

          This will create two files in that directory: font.dir and font.scale

           

          4. Add font directory to path:

          $ chkfontpath -add /usr/share/fonts/default/TrueType

           

          5. Verify font shows:

          $ fc-list | grep "{insert partial fontname}"

               ie. Look for Trade Gothic: $ fc-list | grep "Trade"

           

          6. Update font cache:

          $ fc-cache

           

          7. Restart jive-docconverter:

          $ /etc/init.d/jive-docconverter restart

          This works on Jive 6.x