Class FontFile

    • Field Detail

      • FORMAT

        public static final java.lang.String FORMAT
        The font format parameter name.
        See Also:
        Constant Field Values
      • QUERY

        public static final java.lang.String QUERY
        The font query parameter or SVG font name.
        See Also:
        Constant Field Values
    • Constructor Detail

      • FontFile

        public FontFile()
        Constructor.
      • FontFile

        public FontFile​(Atom atom)
        Constructor with name.
        Parameters:
        atom - The atom name.
    • Method Detail

      • getAssetReference

        public AssetReference getAssetReference()
        Gets the asset references of all icon files.
      • onAssetReferenceChanged

        public void onAssetReferenceChanged​(AssetReference ref)
        Called when an asset file has been changed, either using new reference or the file contents. This listener fires a value change of the asset reference to the font icons definition and all its children.
        Specified by:
        onAssetReferenceChanged in interface IAssetReferenceListener
      • getFormat

        public FontFormat getFormat()
        Returns the format for this font.
        Returns:
        The format.
      • getQuertPart

        public java.lang.String getQuertPart()
        Gets the query part (after '?') or SVG font name (after '#').
        Returns:
        The query part string, including the '?' or '#', or null if undefined.
      • getClientResourceString

        public java.lang.String getClientResourceString()
        Gets the Client resource string in form "module$/path/filename.ext".
        Returns:
        null If not valid.
      • getFontFamily

        public java.lang.String getFontFamily()
        Gets the font family.
        Returns:
        The font family name to use, or "undefined" if this property is not owned by FontFiles.
      • appendFontData

        public void appendFontData​(SendTransaction trans)
        Adds the transaction data for the font installation.
        Parameters:
        trans - The transaction that has the transaction code for resource installation set.
      • getPreloadClientCacheResources

        public PreloadClientCacheResource[] getPreloadClientCacheResources()
        Gets the cached instance of the PreloadClientCacheResource's of the font resource.
        Returns:
        The cached array of preload client resource instances, or null for resource problems.