Package 

Class MutableFontFaceDeclaration

    • Method Detail

      • addSource

         final Unit addSource(String path, Boolean preload)

        Add a source for the font face.

        Parameters:
        path - Path to the font file.
        preload - Indicates whether this source will be declared for preloading in the HTML using <link rel="preload">.
      • addSource

         final Unit addSource(Url href, Boolean preload)

        Add a source for the font face.

        Parameters:
        preload - Indicates whether this source will be declared for preloading in the HTML using <link rel="preload">.