com.gnostice.pdfone
Class PDFViewerXFEFont
java.lang.Object
com.gnostice.pdfone.PDFViewerXFEFont
- All Implemented Interfaces:
- com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- public class PDFViewerXFEFont
- extends Object
- implements com.gnostice.pdfone.PdfViewerFontProcessorStrategy
Method Summary |
void |
createFont(String FontBaseName,
byte[] memory,
double size,
long xRes,
long YRes,
int encoding)
|
void |
dispose()
|
short |
getAscent()
|
int |
getBbox_x_max()
|
int |
getBbox_x_min()
|
int |
getBbox_y_max()
|
int |
getBbox_y_min()
|
float |
getCap_height()
|
int |
getContoursCountForChar(double fontSize,
char ch,
boolean isKerning,
boolean isANSI)
|
short |
getDescent()
|
int |
getEncoding()
|
int |
getErrorCode()
|
String |
getFamily_name()
|
double |
getFontSize()
|
short |
getLeading()
|
String |
getName()
|
String |
getPostscript_name()
|
Shape |
getShapeForChar(double fontSize,
char ch,
boolean isANSI)
|
Shape |
getShapeForGlyphIndex(double fontSize,
long glyphIndex,
boolean isANSI)
|
Shape |
getShapeForGlyphName(double fontSize,
String glyphName,
boolean isANSI)
|
Shape |
getShapeForIdentityH_Text(double fontSize,
String str,
boolean isKerning,
boolean isANSI,
float charWidthForCharCodeZero)
|
Shape |
getShapeForStringArray(double fontSize,
String[] str,
boolean isKerning,
boolean isANSI)
|
Shape |
getShapeForText(double fontSize,
String str,
boolean isKerning,
boolean isANSI)
|
float |
getStem_v()
|
String |
getStyle_name()
|
short |
getUnderscore_position()
|
short |
getUnderscore_size()
|
int |
getUnits_per_em()
|
float |
getX_height()
|
long |
getXRes()
|
long |
getYRes()
|
boolean |
isFontAttributesLoaded()
|
boolean |
isVertical_direction()
|
void |
setFontSize(double size)
|
ENCODING_NONE
public static final int ENCODING_NONE
- See Also:
- Constant Field Values
ENCODING_ADOBE_CUSTOM
public static final int ENCODING_ADOBE_CUSTOM
- See Also:
- Constant Field Values
ENCODING_UNICODE
public static final int ENCODING_UNICODE
- See Also:
- Constant Field Values
ENCODING_APPLE_ROMAN
public static final int ENCODING_APPLE_ROMAN
- See Also:
- Constant Field Values
ENCODING_MS_SYMBOL
public static final int ENCODING_MS_SYMBOL
- See Also:
- Constant Field Values
PDFViewerXFEFont
public PDFViewerXFEFont()
createFont
public void createFont(String FontBaseName,
byte[] memory,
double size,
long xRes,
long YRes,
int encoding)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
createFont
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getDescent
public short getDescent()
- Specified by:
getDescent
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
dispose
public void dispose()
throws IOException
- Specified by:
dispose
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
IOException
getAscent
public short getAscent()
- Specified by:
getAscent
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getShapeForChar
public Shape getShapeForChar(double fontSize,
char ch,
boolean isANSI)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
getShapeForChar
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getShapeForGlyphIndex
public Shape getShapeForGlyphIndex(double fontSize,
long glyphIndex,
boolean isANSI)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
getShapeForGlyphIndex
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getShapeForGlyphName
public Shape getShapeForGlyphName(double fontSize,
String glyphName,
boolean isANSI)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
getShapeForGlyphName
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getShapeForStringArray
public Shape getShapeForStringArray(double fontSize,
String[] str,
boolean isKerning,
boolean isANSI)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
getShapeForStringArray
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getContoursCountForChar
public int getContoursCountForChar(double fontSize,
char ch,
boolean isKerning,
boolean isANSI)
- Specified by:
getContoursCountForChar
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getBbox_x_max
public int getBbox_x_max()
- Specified by:
getBbox_x_max
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getBbox_x_min
public int getBbox_x_min()
- Specified by:
getBbox_x_min
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getBbox_y_max
public int getBbox_y_max()
- Specified by:
getBbox_y_max
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getBbox_y_min
public int getBbox_y_min()
- Specified by:
getBbox_y_min
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getCap_height
public float getCap_height()
- Specified by:
getCap_height
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getEncoding
public int getEncoding()
- Specified by:
getEncoding
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getErrorCode
public int getErrorCode()
- Specified by:
getErrorCode
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getFamily_name
public String getFamily_name()
- Specified by:
getFamily_name
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getFontSize
public double getFontSize()
- Specified by:
getFontSize
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getLeading
public short getLeading()
- Specified by:
getLeading
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getName
public String getName()
- Specified by:
getName
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getPostscript_name
public String getPostscript_name()
- Specified by:
getPostscript_name
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getShapeForIdentityH_Text
public Shape getShapeForIdentityH_Text(double fontSize,
String str,
boolean isKerning,
boolean isANSI,
float charWidthForCharCodeZero)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
getShapeForIdentityH_Text
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getShapeForText
public Shape getShapeForText(double fontSize,
String str,
boolean isKerning,
boolean isANSI)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
getShapeForText
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
getStem_v
public float getStem_v()
- Specified by:
getStem_v
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getStyle_name
public String getStyle_name()
- Specified by:
getStyle_name
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getUnderscore_position
public short getUnderscore_position()
- Specified by:
getUnderscore_position
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getUnderscore_size
public short getUnderscore_size()
- Specified by:
getUnderscore_size
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getUnits_per_em
public int getUnits_per_em()
- Specified by:
getUnits_per_em
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getXRes
public long getXRes()
- Specified by:
getXRes
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getX_height
public float getX_height()
- Specified by:
getX_height
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
getYRes
public long getYRes()
- Specified by:
getYRes
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
isFontAttributesLoaded
public boolean isFontAttributesLoaded()
- Specified by:
isFontAttributesLoaded
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
isVertical_direction
public boolean isVertical_direction()
- Specified by:
isVertical_direction
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
setFontSize
public void setFontSize(double size)
throws com.gnostice.pdfone.PdfViewerFontProcessorException
- Specified by:
setFontSize
in interface com.gnostice.pdfone.PdfViewerFontProcessorStrategy
- Throws:
com.gnostice.pdfone.PdfViewerFontProcessorException
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