com.spire.pdf.graphics.fonts
Class PdfUsedFont

java.lang.Object
  extended by com.spire.pdf.graphics.fonts.PdfUsedFont

public class PdfUsedFont
extends java.lang.Object

Represents the used fonts in a PDF document.


Constructor Summary
PdfUsedFont(PdfFontBase font, PdfPageWidget pageWidget)
          Initializes a new instance of the class.
 
Method Summary
 java.lang.String getName()
          Gets the name.
 float getSize()
          Gets the size.
 java.util.EnumSet<PdfFontStyle> getStyle()
          Gets the style.
 PdfFontType getType()
          Gets the type.
 void replace(PdfFontBase fontToReplace)
          Replaces the specified new font.
static void scaleFontSize(PdfPageBase page, java.lang.String[] fontNames, float factor)
          Scale the font size specified page.
 

Constructor Detail

PdfUsedFont

public PdfUsedFont(PdfFontBase font,
                   PdfPageWidget pageWidget)
Initializes a new instance of the class.

Parameters:
font - The font.
Method Detail

getName

public java.lang.String getName()
Gets the name.


getSize

public float getSize()
Gets the size.


getStyle

public java.util.EnumSet<PdfFontStyle> getStyle()
Gets the style.


getType

public PdfFontType getType()
Gets the type.


replace

public void replace(PdfFontBase fontToReplace)
Replaces the specified new font.

Parameters:
fontToReplace - The new font.

scaleFontSize

public static void scaleFontSize(PdfPageBase page,
                                 java.lang.String[] fontNames,
                                 float factor)
Scale the font size specified page.

Parameters:
page - modified page
fontNames - the names of the fonts to be scaled
factor - scale factor