All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cz.vutbr.web.css.RuleFontFace Maven / Gradle / Ivy

Go to download

jStyleParser is a CSS parser written in Java. It has its own application interface that is designed to allow an efficient CSS processing in Java and mapping the values to the Java data types. It parses CSS 2.1 style sheets into structures that can be efficiently assigned to DOM elements. It is intended be the primary CSS parser for the CSSBox library. While handling errors, it is user agent conforming according to the CSS specification.

The newest version!
/**
 * RuleFontFace.java
 *
 * Created on 1.2.2013, 14:27:04 by burgetr
 */
package cz.vutbr.web.css;

import java.util.List;

import cz.vutbr.web.css.CSSProperty.FontStyle;
import cz.vutbr.web.css.CSSProperty.FontWeight;

/**
 * Contains collection of CSS declarations specified for a given font.
 * 
 * @author burgetr
 */
public interface RuleFontFace extends RuleBlock, PrettyOutput
{
	/**
	 * Gets the font family name
	 * @return Font family name
	 */
    public String getFontFamily();
    
    /**
     * Gets the declared font sources
     * @return The list of sources or {@code null} when no valid source declaration is present.
     */
    public List getSources();
    
    /**
     * Gets the font style
     * @return Font style
     */
    public FontStyle getFontStyle();
    
    /**
     * Gets the font weight
     * @return Font weight
     */
    public FontWeight getFontWeight();
    
    /**
     * Gets the unicode ranges
     * @return List of unicode ranges
     */
    public List getUnicodeRanges();
    
    //=================================================================================
    
    /**
     * A generic font source.
     * @author burgetr
     */
    public interface Source
    {
    }
    
    /**
     * A local font (src: local()). 
     * @author burgetr
     */
    public interface SourceLocal extends Source
    {
        /** The local font name */
        public String getName();
    }
    
    /**
     * A remote source indentified by its URL (src: url()). 
     * @author burgetr
     */
    public interface SourceURL extends Source
    {
        /** The font URI specification */
        public TermURI getURI();
        /** Format specification or {@code null} if not present */
        public String getFormat();
    }
    
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy