From 0df290c5bc412cc5b3a4e25109124559ad39dd38 Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Sun, 23 May 2004 10:38:56 +0000 Subject: [PATCH] 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 --- src/java/org/apache/fop/render/awt/FontTest.java | 11 +++++++++++ 1 file changed, 11 insertions(+) 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) { -- 2.39.5