Interface Font


  • @XmlElement("Font")
    public interface Font
    The Font element identifies a font of a certain family, style, and size.
    Since:
    GeoAPI 2.2
    • Method Detail

      • getFamily

        @XmlParameter("font-familly")
        List<Expression> getFamily()
        The "font-family" SvgParameter element gives the family name of a font to use. Allowed values are system-dependent. Any number of font-family SvgParameter elements may be given and they are assumed to be in preferred order.
        Returns:
        live list of font family
      • getStyle

        @XmlParameter("font-style")
        Expression getStyle()
        The "font-style" SvgParameter element gives the style to use for a font. The allowed values are "normal", "italic", and "oblique". If null, the default is "normal".
        Returns:
        Expression or Expression.NIL
      • getWeight

        @XmlParameter("font-weight")
        Expression getWeight()
        The "font-weight" SvgParameter element gives the amount of weight or boldness to use for a font. Allowed values are "normal" and "bold". If null, the default is "normal".
        Returns:
        Expression or or Expression.NIL
      • getSize

        @XmlParameter("font-size")
        Expression getSize()
        The "font-size" SvgParameter element gives the size to use for the font in pixels. The default is defined to be 10 pixels, though various systems may have restrictions on what sizes are available.
        Returns:
        Expression or null
      • accept

        Object accept​(StyleVisitor visitor,
                      Object extraData)
        calls the visit method of a StyleVisitor
        Parameters:
        visitor - the style visitor