JavaScript is disabled on your browser.
Skip navigation links
org.htmlunit.javascript.host

Class FontFaceSet

    • Constructor Detail

      • FontFaceSet

        public FontFaceSet()
    • Method Detail

      • load

        public org.htmlunit.corejs.javascript.NativePromise load(String font,
         String text)
        Parameters:
        font - a font specification using the CSS value syntax, e.g. "italic bold 16px Roboto"
        text - limit the font faces to those whose Unicode range contains at least one of the characters in text. This does not check for individual glyph coverage.
        Returns:
        a Promise of an Array of FontFace loaded. The promise is fulfilled when all the fonts are loaded; it is rejected if one of the fonts failed to load.
Skip navigation links

Copyright © 2002–2025 Gargoyle Software Inc.. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /