return fontName;
}
- public int getAscender() {
- return ascender;
+ public int getAscender(int size) {
+ return size * ascender;
}
- public int getCapHeight() {
- return capHeight;
+ public int getCapHeight(int size) {
+ return size * capHeight;
}
- public int getDescender() {
- return descender;
+ public int getDescender(int size) {
+ return size * descender;
}
- public int getXHeight() {
- return xHeight;
+ public int getXHeight(int size) {
+ return size * xHeight;
}
public int getFirstChar() {
return lastChar;
}
- public int width(int i) {
- return width[i];
+ public int width(int i,int size) {
+ return size * width[i];
}
- public int[] getWidths() {
+ public int[] getWidths(int size) {
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;
}
}
return fontName;
}
- public int getAscender() {
- return ascender;
+ public int getAscender(int size) {
+ return size * ascender;
}
- public int getCapHeight() {
- return capHeight;
+ public int getCapHeight(int size) {
+ return size * capHeight;
}
- public int getDescender() {
- return descender;
+ public int getDescender(int size) {
+ return size * descender;
}
- public int getXHeight() {
- return xHeight;
+ public int getXHeight(int size) {
+ return size * xHeight;
}
public int getFlags() {
return lastChar;
}
- public int width(int i) {
- return width[i];
+ public int width(int i, int size) {
+ return size * width[i];
}
- public int[] getWidths() {
+ public int[] getWidths(int size) {
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;
}
}