1 18 package org.apache.batik.css.engine; 19 20 import org.apache.batik.util.ParsedURL; 21 22 31 public class FontFaceRule implements Rule { 32 35 public final static short TYPE = (short)3; 36 37 StyleMap sm; 38 ParsedURL purl; 39 public FontFaceRule(StyleMap sm, ParsedURL purl) { 40 this.sm = sm; 41 this.purl = purl; 42 } 43 44 47 public short getType() { return TYPE; } 48 49 52 public ParsedURL getURL() { 53 return purl; 54 } 55 56 59 public StyleMap getStyleMap() { 60 return sm; 61 } 62 63 66 public String toString(CSSEngine eng) { 67 StringBuffer sb = new StringBuffer (); 68 sb.append("@font-face { "); 69 sb.append(sm.toString(eng)); 70 sb.append(" }\n"); 71 return sb.toString(); 72 } 73 } 74 | Popular Tags |