Class MetricFile


  • public abstract class MetricFile
    extends Object
    Represents the secondary file needed by type1 fonts to access kerning data, etc. Possible examples of metric files are .pfm, .afm, and suitcase files.

    Synchronization

    This class is immutable after contruction and contains no mutable static data. It is therefore threadsafe.
    • Method Detail

      • getKernValue

        public abstract double getKernValue​(String leftGlyphName,
                                            String rightGlyphName)
        Fetch the kern value for 2 glyphIDs.
      • getFamilyName

        public abstract String getFamilyName()
        Fetch the platform name for the font associated with this file. Returns null if the file does not contain this information.
      • getFontName

        public abstract String getFontName()
        Fetch the postscript name for the font associated with this file.
      • getWeight

        public abstract int getWeight()
        Fetch the weight for this font. Returns 0 if the file does not contain this information .
      • getLocation

        public final URL getLocation()