]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
Additional style testing
authorPeter Bernard West <pbwest@apache.org>
Sun, 23 May 2004 10:38:56 +0000 (10:38 +0000)
committerPeter Bernard West <pbwest@apache.org>
Sun, 23 May 2004 10:38:56 +0000 (10:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197616 13f79535-47bb-0310-9956-ffa450edef68

src/java/org/apache/fop/render/awt/FontTest.java

index a813065882ac360bdb227d37b92b941c2d2904de..0194fa10797637f41d22e167c1e27acbd3734cb4 100644 (file)
@@ -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) {