package org.apache.fop.fonts.base14; import java.util.Map; import org.apache.fop.fonts.FontType; import org.apache.fop.fonts.Typeface; import org.apache.fop.fonts.CodePointMapping; public class extends Typeface { private final static String fontName = ""; private final static String fullName = ""; private final static String familyName = ""; private final static String encoding = ""null; private final static int capHeight = ; private final static int xHeight = ; private final static int ascender = ; private final static int descender = ; private final static int firstChar = ; private final static int lastChar = ; private final static int[] width; private final CodePointMapping mapping = CodePointMapping.getMapping(""); private final static Map kerning; private boolean enableKerning = false; static { width = new int[256]; kerning = new java.util.HashMap(); Integer first, second; Map pairs; } public () { this(false); } public (boolean enableKerning) { this.enableKerning = enableKerning; } public String getEncoding() { return encoding; } public String getFontName() { return fontName; } public String getEmbedFontName() { return getFontName(); } public String getFullName() { return fullName; } public String getFamilyName() { return familyName; } public FontType getFontType() { return FontType.TYPE1; } public int getAscender(int size) { return size * ascender; } public int getCapHeight(int size) { return size * capHeight; } public int getDescender(int size) { return size * descender; } public int getXHeight(int size) { return size * xHeight; } public int getFirstChar() { return firstChar; } public int getLastChar() { return lastChar; } public int getWidth(int i,int size) { return size * width[i]; } public int[] getWidths() { int[] arr = new int[getLastChar() - getFirstChar() + 1]; System.arraycopy(width, getFirstChar(), arr, 0, getLastChar() - getFirstChar() + 1); return arr; } public boolean hasKerningInfo() { return enableKerning; } public java.util.Map getKerningInfo() { return kerning; } public boolean hasKerningInfo() { return false; } public java.util.Map getKerningInfo() { return java.util.Collections.EMPTY_MAP; } public char mapChar(char c) { notifyMapOperation(); char d = mapping.mapChar(c); if (d != 0) { return d; } else { return '#'; } } public boolean hasChar(char c) { return (mapping.mapChar(c) > 0); } } width[0x] = ; first = new Integer(); pairs = (Map)kerning.get(first); if (pairs == null) { pairs = new java.util.HashMap(); kerning.put(first, pairs); } second = new Integer(); pairs.put(second, new Integer());