You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ar...@apache.org on 2001/02/11 01:48:52 UTC

cvs commit: xml-fop/src/org/apache/fop/svg Text.java

arved       01/02/10 16:48:52

  Modified:    src/org/apache/fop/svg Text.java
  Log:
  Patch for SVG viewbox
  
  Revision  Changes    Path
  1.12      +3 -1      xml-fop/src/org/apache/fop/svg/Text.java
  
  Index: Text.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/Text.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- Text.java	2000/10/25 01:48:44	1.11
  +++ Text.java	2001/02/11 00:48:52	1.12
  @@ -1,4 +1,4 @@
  -/*-- $Id: Text.java,v 1.11 2000/10/25 01:48:44 keiron Exp $ --
  +/*-- $Id: Text.java,v 1.12 2001/02/11 00:48:52 arved Exp $ --
   
    ============================================================================
                      The Apache Software License, Version 1.1
  @@ -58,6 +58,7 @@
   import org.apache.fop.layout.FontState;
   import org.apache.fop.apps.FOPException;
   import org.apache.fop.fo.properties.XMLSpace;
  +import org.apache.fop.fo.properties.TextAnchor;
   
   import java.util.*;
   
  @@ -169,6 +170,7 @@
           textGraph.x = prop == null ? 0 : prop.getValue();
           prop = ((SVGLengthProperty) this.properties.get("y")).getSVGLength();
           textGraph.y = prop == null ? 0 : prop.getValue();
  +	textGraph.anchor = ((EnumProperty) this.properties.get("text-anchor"));
           //		textGraph.textList = textList;
           textGraph.setStyle(
             ((SVGStyle) this.properties.get("style")).getStyle());