* @return the ascender for the given size
*/
public int getAscender(int size) {
- return charSet.getAscender() / 1000 * size;
+ return charSet.getAscender() * size;
}
/**
* @return the cap height for the given size
*/
public int getCapHeight(int size) {
- return charSet.getCapHeight() / 1000 * size;
+ return charSet.getCapHeight() * size;
}
/**
* @return the descender for the given size
*/
public int getDescender(int size) {
- return charSet.getDescender() / 1000 * size;
+ return charSet.getDescender() * size;
}
/**
* @return the x height for the given size
*/
public int getXHeight(int size) {
- return charSet.getXHeight() / 1000 * size;
+ return charSet.getXHeight() * size;
}
/**
* @return the width of the character for the specified point size
*/
public int getWidth(int character, int size) {
- return charSet.getWidth(character) / 1000 * size;
+ return charSet.getWidth(character) * size;
}
/**
public int[] getWidths(int size) {
int[] widths = charSet.getWidths();
for (int i = 0; i < widths.length; i++) {
- widths[i] = widths[i] / 1000 * size;
+ widths[i] = widths[i] * size;
}
return widths;
}
* @return the ascender for the given point size
*/
public int getAscender(int size) {
- return getCharacterSet(size).getAscender();
+ return getCharacterSet(size).getAscender() * size;
}
/**
* @return the cap height for the specified point size
*/
public int getCapHeight(int size) {
- return getCharacterSet(size).getCapHeight();
+ return getCharacterSet(size).getCapHeight() * size;
}
/**
* @return the descender for the specified point size
*/
public int getDescender(int size) {
- return getCharacterSet(size).getDescender();
+ return getCharacterSet(size).getDescender() * size;
}
/**
* @return the x height for the given point size
*/
public int getXHeight(int size) {
- return getCharacterSet(size).getXHeight();
+ return getCharacterSet(size).getXHeight() * size;
}
/**
* @return the width for the given point size
*/
public int getWidth(int character, int size) {
- return getCharacterSet(size).getWidth(character);
+ return getCharacterSet(size).getWidth(character) * size;
}
/**