Class ComputedFont

java.lang.Object
org.htmlunit.javascript.host.css.ComputedFont

final class ComputedFont extends Object
A helper class for handling font attributes of ComputedCSSStyleDeclaration.
  • Field Details

  • Constructor Details

    • ComputedFont

      private ComputedFont()
  • Method Details

    • getDetails

      static String[] getDetails(String font)
    • getFontSizeDetails

      private static String[] getFontSizeDetails(String fontSize)
      Returns:
      an array of fontSize and lineHeight, or null if invalid
    • isValidLineHeight

      private static boolean isValidLineHeight(String lineHeight)