Gnostice PDFOne
Pro. Ed. v5.0.0


com.gnostice.pdfone
Class PdfTextFontInfo

java.lang.Object
  extended bycom.gnostice.pdfone.PdfTextFontInfo

public class PdfTextFontInfo
extends Object

This class represents information related to a font used by a text element.


Field Summary
static int ENCODING_BUILT_IN
          Constant specifying built-in encoding of the font.
static int ENCODING_CUSTOM_ENCODING
          Constant specifying encoding where the base encoding is either ENCODING_MACROMANENCODING or ENCODING_WINANSIENCODING and some differences are specified in a font encoding dictionary.
static int ENCODING_IDENTITY_H
          Constant specifying encoding for Type 0 fonts where horizontally rendered glyphs are identical to their character IDs (CIDs).
static int ENCODING_IDENTITY_V
          Constant specifying encoding for Type 0 fonts where vertically rendered glyphs are identical to their character IDs (CIDs).
static int ENCODING_MACROMANENCODING
          Constant specifying Mac OS standard encoding.
static int ENCODING_STANDARDENCODING
          Constant specifying built-in encoding of a Type 1 font.
static int ENCODING_WINANSIENCODING
          Constant specifying Windows Code Page 1252 encoding.
static int FONT_TYPE_MULTIPLEMASTER_TYPE1
          Constant specifying a multiple master font.
static int FONT_TYPE_TRUETYPE
          Constant specifying a TrueType font.
static int FONT_TYPE_TYPE0
          Constant specifying a composite font.
static int FONT_TYPE_TYPE1
          Constant specifying a Type 1 font.
static int FONT_TYPE_TYPE3
          Constant specifying a Type 3 font.
static int FONT_TYPE_UNKNOWN
          Constant specifying a unknown font type.
 
Method Summary
 double getAscent()
          Returns maximum height above the baseline reached by any glyph in this font.
 double getDescent()
          Returns maximum depth below the baseline reached by any glyph in this font.
 String getFontName()
          Returns name of the font.
 float getFontSize()
          Returns size of the font.
 int getFontStyle()
          Returns style of the font.
 int getFontType()
          Returns type of font.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FONT_TYPE_UNKNOWN

public static final int FONT_TYPE_UNKNOWN
Constant specifying a unknown font type.

See Also:
Constant Field Values

FONT_TYPE_TYPE1

public static final int FONT_TYPE_TYPE1
Constant specifying a Type 1 font.

See Also:
Constant Field Values

FONT_TYPE_TRUETYPE

public static final int FONT_TYPE_TRUETYPE
Constant specifying a TrueType font.

See Also:
Constant Field Values

FONT_TYPE_TYPE3

public static final int FONT_TYPE_TYPE3
Constant specifying a Type 3 font.

See Also:
Constant Field Values

FONT_TYPE_TYPE0

public static final int FONT_TYPE_TYPE0
Constant specifying a composite font.

See Also:
Constant Field Values

FONT_TYPE_MULTIPLEMASTER_TYPE1

public static final int FONT_TYPE_MULTIPLEMASTER_TYPE1
Constant specifying a multiple master font.

See Also:
Constant Field Values

ENCODING_WINANSIENCODING

public static final int ENCODING_WINANSIENCODING
Constant specifying Windows Code Page 1252 encoding.

See Also:
Constant Field Values

ENCODING_MACROMANENCODING

public static final int ENCODING_MACROMANENCODING
Constant specifying Mac OS standard encoding.

See Also:
Constant Field Values

ENCODING_STANDARDENCODING

public static final int ENCODING_STANDARDENCODING
Constant specifying built-in encoding of a Type 1 font.

See Also:
Constant Field Values

ENCODING_IDENTITY_H

public static final int ENCODING_IDENTITY_H
Constant specifying encoding for Type 0 fonts where horizontally rendered glyphs are identical to their character IDs (CIDs).

See Also:
Constant Field Values

ENCODING_IDENTITY_V

public static final int ENCODING_IDENTITY_V
Constant specifying encoding for Type 0 fonts where vertically rendered glyphs are identical to their character IDs (CIDs).

See Also:
Constant Field Values

ENCODING_CUSTOM_ENCODING

public static final int ENCODING_CUSTOM_ENCODING
Constant specifying encoding where the base encoding is either ENCODING_MACROMANENCODING or ENCODING_WINANSIENCODING and some differences are specified in a font encoding dictionary.

See Also:
Constant Field Values

ENCODING_BUILT_IN

public static final int ENCODING_BUILT_IN
Constant specifying built-in encoding of the font.

See Also:
Constant Field Values
Method Detail

getAscent

public double getAscent()
Returns maximum height above the baseline reached by any glyph in this font.

Returns:
maximum height above the baseline

getDescent

public double getDescent()
Returns maximum depth below the baseline reached by any glyph in this font.

Returns:
maximum depth below the baseline

getFontName

public String getFontName()
Returns name of the font.

Returns:
name of the font

getFontSize

public float getFontSize()
Returns size of the font.

Returns:
size of the font

getFontStyle

public int getFontStyle()
Returns style of the font.

Returns:
constant specifying font style

getFontType

public int getFontType()
Returns type of font.

Returns:
constant specifying the type of font

toString

public String toString()

Gnostice PDFOne
Pro. Ed. v5.0.0

To contact our support team, send an e-mail to support@gnostice.com.
 
© 2010 Gnostice Information Technologies Private Limited. All rights reserved.
www.gnostice.com