Class FontFace

    • Constructor Detail

      • FontFace

        public FontFace​(java.util.List srcs,
                        java.lang.String familyName,
                        float unitsPerEm,
                        java.lang.String fontWeight,
                        java.lang.String fontStyle,
                        java.lang.String fontVariant,
                        java.lang.String fontStretch,
                        float slope,
                        java.lang.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​(java.lang.String familyName)
        Constructes an SVGFontFace with the specfied fontName.
    • Method Detail

      • createFontFace

        public static CSSFontFace createFontFace​(java.lang.String familyName,
                                                 FontFace src)
      • getFontFamily

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

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