pbwest 2004/05/23 03:38:56
Modified: src/java/org/apache/fop/render/awt Tag:
FOP_0-20-0_Alt-Design FontTest.java
Log:
Additional style testing
Revision Changes Path
No revision
No revision
1.1.2.4 +13 -2 xml-fop/src/java/org/apache/fop/render/awt/Attic/FontTest.java
Index: FontTest.java
===================================================================
RCS file: /home/cvs/xml-fop/src/java/org/apache/fop/render/awt/Attic/FontTest.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- FontTest.java 20 May 2004 00:07:06 -0000 1.1.2.3
+++ FontTest.java 23 May 2004 10:38:56 -0000 1.1.2.4
@@ -66,6 +66,17 @@
System.out.println("\t" + (f.isPlain() ? "PLAIN " : " ")
+ (f.isBold() ? "BOLD " : " ")
+ (f.isItalic() ? "ITALIC" : " "));
+ int style = f.getStyle();
+ System.out.println("\tStyle:");
+ if (style == Font.PLAIN) {
+ System.out.println("\t\tPLAIN");
+ }
+ if ((style & Font.BOLD) != 0) {
+ System.out.println("\t\tBOLD");
+ }
+ if ((style & Font.ITALIC) != 0) {
+ System.out.println("\t\tITALIC");
+ }
Attribute[] textAttrs = f.getAvailableAttributes();
for (int j = 0; j < textAttrs.length; j++) {
if (textAttrs[j] instanceof TextAttribute) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]