-
Bug
-
Resolution: Won't Fix
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.5.1
See test program below:
import java.awt.font.StyledString;
import java.awt.Font;
public class GetCharsTest {
public static void main (String args[]) {
try {
String string2 = "123456";
Font font2 = new Font("Helvetica",Font.BOLD,12);
StyledString s = new StyledString(string2,font2);
System.out.println("character " + s.charAt(0) );
System.out.println("character " + s.getFontAt(0) );
System.out.println("character " + s.getFontAt(6) );
System.out.println("character " + s.getFontAt(5) );
System.out.println("character " + s.getFontAt(7) );
// System.out.println("character " + s.getFontAt(-1) );
System.out.println("string " + s.toString() );
// StyledString aStyledString = s.substring(1,2);
} catch (Throwable exception) {
System.out.println("Exception" + exception);
}
System.out.println("Done ssf");
System.exit(0);
}
}
import java.awt.font.StyledString;
import java.awt.Font;
public class GetCharsTest {
public static void main (String args[]) {
try {
String string2 = "123456";
Font font2 = new Font("Helvetica",Font.BOLD,12);
StyledString s = new StyledString(string2,font2);
System.out.println("character " + s.charAt(0) );
System.out.println("character " + s.getFontAt(0) );
System.out.println("character " + s.getFontAt(6) );
System.out.println("character " + s.getFontAt(5) );
System.out.println("character " + s.getFontAt(7) );
// System.out.println("character " + s.getFontAt(-1) );
System.out.println("string " + s.toString() );
// StyledString aStyledString = s.substring(1,2);
} catch (Throwable exception) {
System.out.println("Exception" + exception);
}
System.out.println("Done ssf");
System.exit(0);
}
}