You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by de...@apache.org on 2003/04/12 02:12:16 UTC

cvs commit: xml-batik/sources/org/apache/batik/css/engine CSSEngine.java

deweese     2003/04/11 17:12:16

  Modified:    sources/org/apache/batik/css/engine CSSEngine.java
  Log:
  1) Batik no longer considers all @font-face rules a syntax error.
      But Batik still just ignores them.
  
  Revision  Changes    Path
  1.20      +9 -1      xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java
  
  Index: CSSEngine.java
  ===================================================================
  RCS file: /home/cvs/xml-batik/sources/org/apache/batik/css/engine/CSSEngine.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- CSSEngine.java	11 Apr 2003 13:55:27 -0000	1.19
  +++ CSSEngine.java	12 Apr 2003 00:12:16 -0000	1.20
  @@ -1375,6 +1375,7 @@
            * org.w3c.css.sac.DocumentHandler#startFontFace()}.
            */
           public void startFontFace() throws CSSException {
  +            styleDeclaration = new StyleDeclaration();
           }
       
           /**
  @@ -1382,6 +1383,13 @@
            * org.w3c.css.sac.DocumentHandler#endFontFace()}.
            */
           public void endFontFace() throws CSSException {
  +            // We should really register this fontFace Defn with the
  +            // BridgeContext fontFamilyMap, so if someone tries to
  +            // resolve this font we can look at the associated uri.
  +            // We know that if it has a fragment identifier then it
  +            // must be an SVG font otherwise it may be a stream
  +            // worth passing to Font.createFont(int type, InputStream);
  +            styleDeclaration = null;
           }
       
           /**
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-dev-help@xml.apache.org