Class FontFace

java.lang.Object
io.webfolder.cdp.type.css.FontFace

public class FontFace extends Object
Properties of a web font: https://www.w3.org/TR/2008/REC-CSS2-20080411/fonts.html#font-descriptions and additional information such as platformFontFamily and fontVariationAxes.
  • Constructor Details

    • FontFace

      public FontFace()
  • Method Details

    • getFontFamily

      public String getFontFamily()
      The font-family.
    • setFontFamily

      public void setFontFamily(String fontFamily)
      The font-family.
    • getFontStyle

      public String getFontStyle()
      The font-style.
    • setFontStyle

      public void setFontStyle(String fontStyle)
      The font-style.
    • getFontVariant

      public String getFontVariant()
      The font-variant.
    • setFontVariant

      public void setFontVariant(String fontVariant)
      The font-variant.
    • getFontWeight

      public String getFontWeight()
      The font-weight.
    • setFontWeight

      public void setFontWeight(String fontWeight)
      The font-weight.
    • getFontStretch

      public String getFontStretch()
      The font-stretch.
    • setFontStretch

      public void setFontStretch(String fontStretch)
      The font-stretch.
    • getFontDisplay

      public String getFontDisplay()
      The font-display.
    • setFontDisplay

      public void setFontDisplay(String fontDisplay)
      The font-display.
    • getUnicodeRange

      public String getUnicodeRange()
      The unicode-range.
    • setUnicodeRange

      public void setUnicodeRange(String unicodeRange)
      The unicode-range.
    • getSrc

      public String getSrc()
      The src.
    • setSrc

      public void setSrc(String src)
      The src.
    • getPlatformFontFamily

      public String getPlatformFontFamily()
      The resolved platform font family
    • setPlatformFontFamily

      public void setPlatformFontFamily(String platformFontFamily)
      The resolved platform font family
    • getFontVariationAxes

      public List<FontVariationAxis> getFontVariationAxes()
      Available variation settings (a.k.a. "axes").
    • setFontVariationAxes

      public void setFontVariationAxes(List<FontVariationAxis> fontVariationAxes)
      Available variation settings (a.k.a. "axes").
    • toString

      public String toString()
      Overrides:
      toString in class Object