git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197442
13f79535-47bb-0310-9956-
ffa450edef68
* This also performs some guessing on widths on various
* versions of space that might not exists in the font.
* @param c character to inspect
- * @param fs FontState to use
* @return the width of the character
*/
public int getCharWidth(char c) {
int weight = 400;
try {
weight = Integer.parseInt(text);
- weight = ((int)weight / 100) * 100;
+ weight = (weight / 100) * 100;
weight = Math.max(weight, 100);
weight = Math.min(weight, 900);
} catch (NumberFormatException nfe) {
* @see org.apache.fop.fonts.Font#mapChar(char)
*/
public char mapChar(char c) {
- int idx = (int)c;
+ int idx = c;
int retIdx = 0;
for (int i = 0; (i < bfentries.length) && retIdx == 0; i++) {