]> source.dussan.org Git - xmlgraphics-fop.git/commitdiff
cleaned up unneeded code
authorKeiron Liddle <keiron@apache.org>
Mon, 21 May 2001 12:06:42 +0000 (12:06 +0000)
committerKeiron Liddle <keiron@apache.org>
Mon, 21 May 2001 12:06:42 +0000 (12:06 +0000)
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194260 13f79535-47bb-0310-9956-ffa450edef68

src/org/apache/fop/svg/SVGElement.java

index 4939eab8d4d2c0b1eac964c400e2b5a18d468dac..0cb0bd45d39d102997d5378388dc5dce62f14c6e 100644 (file)
@@ -88,27 +88,7 @@ public class SVGElement extends Svg {
         }*/
 
         if (this.marker == START) {
-            /* retrieve properties */
-            String id = this.properties.get("id").getString();
-            String fontFamily =
-              this.properties.get("font-family").getString();
-            String fontStyle =
-              this.properties.get("font-style").getString();
-            String fontWeight =
-              this.properties.get("font-weight").getString();
-            String fontSz = this.properties.get("font-size").getString();
-            int fontSize = area.getFontState().getFontSize();
-            try {
-                fontSize = Integer.parseInt(fontSz);
-            } catch (Exception e) {
-            }
-
-            // FIX-ME: should get the font-variant property
-            this.fs = new FontState(area.getFontInfo(), fontFamily,
-                                    fontStyle, fontWeight, fontSize, FontVariant.NORMAL);
-
-            //                                         this.width = this.properties.get("width").getString();
-            //                                         this.height = this.properties.get("height").getString();
+            this.fs = area.getFontState();
 
             this.marker = 0;
         }
@@ -141,26 +121,6 @@ public class SVGElement extends Svg {
                                };
         ((SVGOMDocument)doc).setSVGContext(dc);
         buildTopLevel(doc, svgRoot);
-/*
-        for (int count = 0; count < props.length; count++) {
-            if (this.properties.get(props[count]) != null) {
-                String rf = this.properties.get(props[count]).getString();
-                if (rf != null)
-                    svgRoot.setAttributeNS(null, props[count], rf);
-            }
-        }
-        //doc.appendChild(topLevel);
-        int numChildren = this.children.size();
-        for (int i = 0; i < numChildren; i++) {
-            Object child = children.elementAt(i);
-            if (child instanceof SVGObj) {
-                ((SVGObj) child).addGraphic(doc, svgRoot);
-            } else if (child instanceof String) {
-                org.w3c.dom.Text text = doc.createTextNode((String) child);
-                svgRoot.appendChild(text);
-            }
-        }
-*/
         float width = ((SVGSVGElement) svgRoot).getWidth().getBaseVal().
                       getValue();
         float height = ((SVGSVGElement) svgRoot).getHeight().getBaseVal().