Class Pfm2afm


  • public class Pfm2afm
    extends java.lang.Object
    Converts a PFM file into an AFM file.
    • Field Detail

      • out

        private java.io.PrintWriter out
      • vers

        protected short vers
      • h_len

        protected int h_len
      • copyright

        protected java.lang.String copyright
      • type

        protected short type
      • points

        protected short points
      • verres

        protected short verres
      • horres

        protected short horres
      • ascent

        protected short ascent
      • intleading

        protected short intleading
      • extleading

        protected short extleading
      • italic

        protected byte italic
      • uline

        protected byte uline
      • overs

        protected byte overs
      • weight

        protected short weight
      • charset

        protected byte charset
      • pixwidth

        protected short pixwidth
      • pixheight

        protected short pixheight
      • kind

        protected byte kind
      • avgwidth

        protected short avgwidth
      • maxwidth

        protected short maxwidth
      • firstchar

        protected int firstchar
      • lastchar

        protected int lastchar
      • defchar

        protected byte defchar
      • brkchar

        protected byte brkchar
      • widthby

        protected short widthby
      • device

        protected int device
      • face

        protected int face
      • bits

        protected int bits
      • bitoff

        protected int bitoff
      • extlen

        protected short extlen
      • psext

        protected int psext
      • chartab

        protected int chartab
      • res1

        protected int res1
      • kernpairs

        protected int kernpairs
      • res2

        protected int res2
      • fontname

        protected int fontname
      • capheight

        protected short capheight
      • xheight

        protected short xheight
      • ascender

        protected short ascender
      • descender

        protected short descender
      • isMono

        protected boolean isMono
      • Win2PSStd

        private int[] Win2PSStd
      • WinChars

        private java.lang.String[] WinChars
    • Constructor Detail

      • Pfm2afm

        private Pfm2afm​(RandomAccessFileOrArray in,
                        java.io.OutputStream out)
                 throws java.io.IOException
        Creates a new instance of Pfm2afm
        Throws:
        java.io.IOException
    • Method Detail

      • convert

        public static void convert​(RandomAccessFileOrArray in,
                                   java.io.OutputStream out)
                            throws java.io.IOException
        Converts a PFM file into an AFM file.
        Parameters:
        in - the PFM file
        out - the AFM file
        Throws:
        java.io.IOException - on error
      • main

        public static void main​(java.lang.String[] args)
      • readString

        private java.lang.String readString​(int n)
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • readString

        private java.lang.String readString()
                                     throws java.io.IOException
        Throws:
        java.io.IOException
      • outval

        private void outval​(int n)
      • outchar

        private void outchar​(int code,
                             int width,
                             java.lang.String name)
      • openpfm

        private void openpfm()
                      throws java.io.IOException
        Throws:
        java.io.IOException
      • putheader

        private void putheader()
                        throws java.io.IOException
        Throws:
        java.io.IOException
      • putchartab

        private void putchartab()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • putkerntab

        private void putkerntab()
                         throws java.io.IOException
        Throws:
        java.io.IOException
      • puttrailer

        private void puttrailer()