Multivalent API

multivalent.std.adaptor.pdf
Class Core14AFM

java.lang.Object
  extended by multivalent.std.adaptor.pdf.Core14AFM

public class Core14AFM
extends java.lang.Object

Repository of font metric data for core 14 fonts, extracted from Adobe Font Metric files and augmented as noted where required by practice.

The core 14 fonts are: Times-Roman, Times-Bold, Times-Italic, Times-BoldItalic, Courier, Courier-Bold, Courier-Oblique, Courier-BoldOblique, Helvetica, Helvetica-Bold, Helvetica-Oblique, Helvetica-BoldOblique, Symbol, ZapfDingbats.

Encoding is always "AdobeStandardEncoding" or "FontSpecific". As it happens, the first character in the core 14 widths is always 32.

Version:
$Revision: 1.7 $ $Date: 2003/06/01 07:01:27 $

Method Summary
static Dict getFontDescriptor(java.lang.String fontname)
          Returns null if fontname not on of core 14 fonts.
static int[] getWidths(java.lang.String fontname)
          Returns array of character widths, with array position 0 corresponding to character code 32.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getWidths

public static int[] getWidths(java.lang.String fontname)
Returns array of character widths, with array position 0 corresponding to character code 32. Caller must not modify contents of array.


getFontDescriptor

public static Dict getFontDescriptor(java.lang.String fontname)
Returns null if fontname not on of core 14 fonts.


Multivalent API