public interface ITrFont
This interface give access to main parameters of font.
Modifier and Type | Method and Description |
---|---|
ITrFont |
clone()
Clones the font.
|
ITrFont |
deriveFont(AffineTransform transform)
Creates equivalent of this font with new transform.
|
ITrFont |
deriveFont(float size)
Creates equivalent of this font with new size.
|
ITrFont |
deriveFont(float size,
int style)
Creates equivalent of this font with new size and style.
|
ITrFont |
deriveFont(int style)
Creates equivalent of this font with new style.
|
HashMap<String,IGlyph> |
getCharStrings()
Gets a mapping between character name and glyph.
|
float |
getCharWidth(char charValue)
Gets a width of character.
|
String[] |
getEncoding()
Gets encoding array.
|
String |
getEncodingTable()
Gets a name of the encoding.
|
com.aspose.foundation.drawing.DrFont |
getFont()
Gets DrFont corresponding to this font.
|
String |
getFontName()
Gets a name of font.
|
int |
getFontType()
Gets a type of font in Adobe classification.
|
Font |
getNativeFont()
Gets java.awt.Font corresponding to this font.
|
Shape |
getOutline(char charValue,
float x,
float y)
Returns an outline of glyph in specified location.
|
float |
getSize()
Gets font size.
|
int |
getStyle()
Gets font style.
|
AffineTransform |
getTransform()
Gets font transformation.
|
int getFontType()
Gets a type of font in Adobe classification.
String getFontName()
Gets a name of font.
String getEncodingTable()
Gets a name of the encoding.
String[] getEncoding()
Gets encoding array.
HashMap<String,IGlyph> getCharStrings()
Gets a mapping between character name and glyph.
com.aspose.foundation.drawing.DrFont getFont()
Gets DrFont corresponding to this font.
Font getNativeFont()
Gets java.awt.Font corresponding to this font.
AffineTransform getTransform()
Gets font transformation.
float getSize()
Gets font size.
int getStyle()
Gets font style.
ITrFont deriveFont(float size)
Creates equivalent of this font with new size.
size
- Size of new font.ITrFont deriveFont(int style)
Creates equivalent of this font with new style.
style
- Style of new font.ITrFont deriveFont(float size, int style)
Creates equivalent of this font with new size and style.
size
- Size of new font.style
- Style of new font.ITrFont deriveFont(AffineTransform transform)
Creates equivalent of this font with new transform.
transform
- Transformation of new font.float getCharWidth(char charValue)
Gets a width of character.
charValue
- Character.Shape getOutline(char charValue, float x, float y)
Returns an outline of glyph in specified location.
charValue
- Character.x
- X coordinate of the character location.y
- Y coordinate of the character location.ITrFont clone()
Clones the font.