Class FontFace

All Implemented Interfaces:
ErrorConstants, XMLConstants, CSSConstants, SVGConstants
Direct Known Subclasses:
CSSFontFace, SVGFontFace

public abstract class FontFace extends GVTFontFace implements ErrorConstants
This class represents a <font-face> element or @font-face rule
  • Constructor Details

    • FontFace

      public FontFace(List srcs, String familyName, float unitsPerEm, String fontWeight, String fontStyle, String fontVariant, String fontStretch, float slope, String panose1, float ascent, float descent, float strikethroughPosition, float strikethroughThickness, float underlinePosition, float underlineThickness, float overlinePosition, float overlineThickness)
      Constructes an SVGFontFace with the specfied font-face attributes.
    • FontFace

      protected FontFace(String familyName)
      Constructes an SVGFontFace with the specfied fontName.
  • Method Details

    • createFontFace

      public static CSSFontFace createFontFace(String familyName, FontFace src)
    • getFontFamily

      public GVTFontFamily getFontFamily(BridgeContext ctx)
      Returns the font associated with this rule or element.
    • getFontFamily

      protected GVTFontFamily getFontFamily(BridgeContext ctx, ParsedURL purl)
      Tries to build a GVTFontFamily from a URL reference
    • getBaseElement

      protected Element getBaseElement(BridgeContext ctx)
      Default implementation uses the root element of the document associated with BridgeContext. This is useful for CSS case.