package org.apache.fop.fonts.base14;
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 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("");
static {
width = new int[256];
}
public String getEncoding() {
return encoding;
}
public String getFontName() {
return fontName;
}
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);
//for( int i = 0; i < arr.length; i++) arr[i] *= size;
return arr;
}
public boolean hasKerningInfo() {
return false;
}
public java.util.Map getKerningInfo() {
return java.util.Collections.EMPTY_MAP;
}
public char mapChar(char c) {
char d = mapping.mapChar(c);
if(d != 0) {
return d;
} else {
return '#';
}
}
public boolean hasChar(char c) {
return (mapping.mapChar(c) > 0);
}
}
width[0x] = ;