VectorLinux
November 22, 2014, 01:02:48 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: suggestions to install microsoft's truetype fonts  (Read 3385 times)
bad_gui
Member
*
Posts: 61


« on: April 27, 2008, 06:05:53 pm »

I'm using xpdf to read journal article pdf files.  I am also trying to use gs to merge articles
with their supplemental data into one big pdf rather than as two separate pdf files.

I get errors with some non-standard pdf files (what is the point of having a standard when people
ignore it?)  Here is an example where gs fails due to a lack of embedded fonts:

Quote
:$ gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=science316p1039S.pdf science316p1039.pdf \              > science316p1039suppl.pdf
   **** Warning:  An error occurred while reading an XREF table.
   **** The file has been damaged.  This may have been caused
   **** by a problem while converting or transfering the file.
   **** Ghostscript will attempt to recover the data.
   **** Warning: Fonts with Subtype = /TrueType should be embedded.
                 But TimesNewRomanPSMT is not embedded.
   **** Warning: Fonts with Subtype = /TrueType should be embedded.
                 But TimesNewRomanPS-BoldItalicMT is not embedded.
   **** Warning: Fonts with Subtype = /TrueType should be embedded.
                 But TimesNewRomanPS-BoldMT is not embedded.
   **** Warning: Fonts with Subtype = /TrueType should be embedded.
                 But TimesNewRomanPS-ItalicMT is not embedded.


Here is a link with info from an old link on installing M$ fonts in linux
http://corefonts.sourceforge.net/

Should I do all this or is there a better fix for this problem.
Logged
saulgoode
Vectorite
***
Posts: 340



« Reply #1 on: April 27, 2008, 06:31:44 pm »

Have you tried RedHat's Liberation fonts? Specifically, the Serif set should provide substitutes for the Times New Roman TTF.
Logged

A complex system that works is invariably found to have evolved from a simple system that works.
bad_gui
Member
*
Posts: 61


« Reply #2 on: April 27, 2008, 07:30:25 pm »

Thanks!  I grabbed the package and it contains the TTF files and the legal stuff but no
instructions.  Sorry for the noob question but I don't want to make things worse on my
VL5.9 system.  I installed fontfix-1.0-noarch-2vl59 on my system if that makes any difference.

Where do I install these TTF files so they are available to xpdf and gs?  I checked
/usr/X11R6/share/fonts/TTF/ and there are already a bunch of similar fonts available.
Do I also edit some config file to use these fonts?

  • DENMARK.TTF                         DejaVuSerifBoldItalic.ttf  TAMu_Kadampari.ttf  luximb.ttf
    DejaVuCondensedSans.ttf             DejaVuSerifItalic.ttf      TAMu_Kalyani.ttf    luximbi.ttf
    DejaVuCondensedSansBold.ttf         Gargi_1.7.ttf              TAMu_Maduram.ttf    luximr.ttf
    DejaVuCondensedSansBoldOblique.ttf  GohaTibebZemen.ttf         TSCu_Comic.ttf      luximri.ttf
    DejaVuCondensedSansOblique.ttf      JamrulNormal.ttf           TSCu_Paranar.ttf    luxirb.ttf
    DejaVuCondensedSerif.ttf            Kedage-b.ttf               TSCu_Times.ttf      luxirbi.ttf
    DejaVuCondensedSerifBold.ttf        Kedage-i.ttf               TSCu_paranarb.ttf   luxirr.ttf
    DejaVuCondensedSerifBoldItalic.ttf  Kedage-n.ttf               TSCu_paranari.ttf   luxirri.ttf
    DejaVuCondensedSerifItalic.ttf      Kedage-t.ttf               Vemana.ttf          luxisb.ttf
    DejaVuMonoSans.ttf                  LikhanNormal.ttf           aakar-medium.ttf    luxisbi.ttf
    DejaVuMonoSansBold.ttf              Malige-b.ttf               ani.ttf             luxisr.ttf
    DejaVuMonoSansBoldOblique.ttf       Malige-i.ttf               chandas1-1.ttf      luxisri.ttf
    DejaVuMonoSansOblique.ttf           Malige-n.ttf               fonts.dir           mitra.ttf
    DejaVuSans.ttf                      Malige-t.ttf               fonts.scale         padmaa-Bold-0.5.ttf
    DejaVuSansBold.ttf                  MuktiNarrow.ttf            kalimati.ttf        padmaa-Medium-0.5.ttf
    DejaVuSansBoldOblique.ttf           MuktiNarrowBold.ttf        lohit_bn.ttf        samanata.ttf
    DejaVuSansExtraLight.ttf            Pothana2000.ttf            lohit_gu.ttf        utkal.ttf
    DejaVuSansOblique.ttf               Rekha.ttf                  lohit_hi.ttf
    DejaVuSerif.ttf                     Saab.ttf                   lohit_pa.ttf
    DejaVuSerifBold.ttf                 Samyak_Malayalam.ttf       lohit_ta.ttf
« Last Edit: April 27, 2008, 07:38:40 pm by bad_gui » Logged
saulgoode
Vectorite
***
Posts: 340



« Reply #3 on: April 27, 2008, 08:13:32 pm »

If there is no Vector-specific package available, you should have no problem if you install the package (using 'installpkg') from Slackware -current.

http://ftp.osuosl.org/pub/slackware/slackware-current/slackware/x/liberation-fonts-ttf-1.0-noarch-1.tgz

NOTE: the liberation fonts are installed on VL-Light 5.9. So there is a Vector package available (but I can't seem to find it in the repositories)
« Last Edit: April 27, 2008, 08:18:02 pm by saulgoode » Logged

A complex system that works is invariably found to have evolved from a simple system that works.
bad_gui
Member
*
Posts: 61


« Reply #4 on: April 28, 2008, 04:27:45 pm »

Great Thanks.  Installed with no complaints and the liberation fonts are in the TTF folder.

However now I get a different error:

Quote
$  gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=nature437p699S.pdf nature437p699.pdf \
> nature03998-s1.pdf nature03998-s2.pdf
ESP Ghostscript 815.04: ERROR -25 closing the device. See gs/src/ierrors.h for code explanation.

When I check http://svn.ghostscript.com/ghostscript/trunk/gs/src/ierrors.h I see this:
Quote
#define e_undefinedfilename (-22)
#define e_undefinedresult (-23)
#define e_unmatchedmark (-24)
#define e_VMerror (-25)      /* must be the last Level 1 error */

#define LEVEL1_ERROR_NAMES\
 "unknownerror", "dictfull", "dictstackoverflow", "dictstackunderflow",\
 "execstackoverflow", "interrupt", "invalidaccess", "invalidexit",\
 "invalidfileaccess", "invalidfont", "invalidrestore", "ioerror",\
 "limitcheck", "nocurrentpoint", "rangecheck", "stackoverflow",\
 "stackunderflow", "syntaxerror", "timeout", "typecheck", "undefined",\
 "undefinedfilename", "undefinedresult", "unmatchedmark", "VMerror"

Anyone know what VMerror means?  Does this help anyone:
http://www.ghostscript.com/pipermail/gs-code-review/2001-August/001120.html 
Logged
Penguinista
Guest
« Reply #5 on: May 21, 2009, 09:42:14 am »

removed
« Last Edit: May 21, 2009, 05:04:54 pm by Penguinista » Logged
newt
Vectorian
****
Posts: 1132



« Reply #6 on: May 21, 2009, 10:31:34 am »

I think it's still good practice to update your font cache after installing new fonts using the 'fc-cache' command (as root, probably). Whether or not this will help bad_gui's situation - I don't know but perhaps.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!