Package com.independentsoft.office.pdf

# Class PdfSaveOptions.FontSource

java.lang.Object
com.independentsoft.office.pdf.PdfSaveOptions.FontSource

Enclosing class:
  PdfSaveOptions

public static class PdfSaveOptions.FontSource extends Object
A registered font source.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `FontSource()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte[]`
  `getData()`
  Gets the font data or null when registered from a file path.
  `String`
  `getFamily()`
  Gets the font family name.
  `String`
  `getFilePath()`
  Gets the file path or null when registered from bytes.
  `boolean`
  `isBold()`
  Gets whether this is the bold variant.
  `boolean`
  `isItalic()`
  Gets whether this is the italic variant.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### FontSource

    public FontSource()

- ## Method Details

  - ### getFamily

    public String getFamily()
    Gets the font family name.
    Returns:
      the family name

  - ### isBold

    public boolean isBold()
    Gets whether this is the bold variant.
    Returns:
      true if bold

  - ### isItalic

    public boolean isItalic()
    Gets whether this is the italic variant.
    Returns:
      true if italic

  - ### getFilePath

    public String getFilePath()
    Gets the file path or null when registered from bytes.
    Returns:
      the file path

  - ### getData

    public byte[] getData()
    Gets the font data or null when registered from a file path.
    Returns:
      the font data