From: Peter Bernard West Date: Sun, 23 May 2004 10:38:56 +0000 (+0000) Subject: Additional style testing X-Git-Tag: Defoe_export~152 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0df290c5bc412cc5b3a4e25109124559ad39dd38;p=xmlgraphics-fop.git Additional style testing git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197616 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/java/org/apache/fop/render/awt/FontTest.java b/src/java/org/apache/fop/render/awt/FontTest.java index a81306588..0194fa107 100644 --- a/src/java/org/apache/fop/render/awt/FontTest.java +++ b/src/java/org/apache/fop/render/awt/FontTest.java @@ -66,6 +66,17 @@ public class FontTest { 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) {