|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.cete.dynamicpdf.Resource
|
+--com.cete.dynamicpdf.Font
Base class from which all fonts are derived.
Licensing:
This class is a DynamicPDF Generator Community Edition feature.
| Constructor Summary | |
protected |
Font(Encoder encoder)
Initializes a new instance of the Font class. |
protected |
Font(Encoder encoder,
long uid)
Initializes a new instance of the Font class. |
| Method Summary | |
abstract short |
getAscender()
Gets the ascender for the font. |
float |
getAscender(float fontSize)
Returns the ascender of the font in points for the given font size. |
float |
getBaseLine(float fontSize,
float leading)
Returns the baseline of the font in points for the given leading and font size. |
static Font |
getCeTeBullets()
Gets the CeTeBullets font for UnorderedList Bullets. |
static FormFont |
getCourier()
Gets the Courier core font with Latin 1 encoding. |
static FormFont |
getCourierBold()
Gets the Courier Bold core font with Latin 1 encoding. |
static FormFont |
getCourierBoldOblique()
Gets the Courier Bold Oblique core font with Latin 1 encoding. |
static FormFont |
getCourierOblique()
Gets the Courier Oblique core font with Latin 1 encoding. |
float |
getDefaultLeading(float fontSize)
Returns the default leading of the font in points for the given font size. |
abstract short |
getDescender()
Gets the descender for the font. |
float |
getDescender(float fontSize)
Returns the descender of the font in points for the given font size. |
Encoder |
getEncoder()
Gets the encoder for the font. |
abstract int |
getGlyphWidth(char glyph)
Returns the mwidth of a glyph. |
static Font |
getHanyangSystemsGothicMedium()
Gets the Hanyang Systems Gothic Medium Korean font. |
static Font |
getHanyangSystemsShinMyeongJoMedium()
Gets the Hanyang Systems Shin MyeongJo Medium Korean font. |
static Font |
getHeiseiKakuGothicW5()
Gets the Heisei Kaku Gothic W5 Japanese font. |
static Font |
getHeiseiMinchoW3()
Gets the Heisei Mincho W3 Japanese font. |
static FormFont |
getHelvetica()
Gets the Helvetica core font with Latin 1 encoding. |
static FormFont |
getHelveticaBold()
Gets the Helvetica Bold core font with Latin 1 encoding. |
static FormFont |
getHelveticaBoldOblique()
Gets the Helvetica Bold Oblique core font with Latin 1 encoding. |
static FormFont |
getHelveticaOblique()
Gets the Helvetica Oblique core font with Latin 1 encoding. |
abstract LineBreaker |
getLineBreaker()
Gets the default line breaker for the font. |
short |
getLineGap()
Gets the line gap for the font. |
float |
getLineGap(float fontSize)
Returns the line gap of the font in points for the given font size. |
static Font |
getMonotypeHeiMedium()
Gets the Monotype Hei Medium Chinese (traditional) font. |
static Font |
getMonotypeSungLight()
Gets the Monotype Sung Light Chinese (traditional) font. |
abstract java.lang.String |
getName()
Gets the name of the font. |
ResourceType |
getResourceType()
Gets the resource type. |
static Font |
getSinoTypeSongLight()
Gets the SinoType Song Light Chinese (simplified) font. |
static FormFont |
getSymbol()
Gets the Symbol core font. |
TextLineList |
getTextLines(char[] text,
float width,
float fontSize)
Gets the text broken in it lines as TextLineList. |
TextLineList |
getTextLines(char[] text,
float width,
float height,
float fontSize)
Gets the text broken in it lines as TextLineList. |
float |
getTextWidth(char[] text,
float fontSize)
Returns the width of the given text. |
float |
getTextWidth(java.lang.String text,
float fontSize)
Returns the width of the given text. |
static FormFont |
getTimesBold()
Gets the Times Bold core font with Latin 1 encoding. |
static FormFont |
getTimesBoldItalic()
Gets the Times Bold Italic core font with Latin 1 encoding. |
static FormFont |
getTimesItalic()
Gets the Times Italic core font with Latin 1 encoding. |
static FormFont |
getTimesRoman()
Gets the Times Roman core font with Latin 1 encoding. |
static FormFont |
getZapfDingbats()
Gets the Zapf Dingbats core font. |
| Methods inherited from class com.cete.dynamicpdf.Resource |
draw, getRequiredPdfObjects, getUid, newUid |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected Font(Encoder encoder,
long uid)
Font class.
encoder - Encoder for the font.uid - long unique id for the font.protected Font(Encoder encoder)
Font class.
encoder - Encoder for the font.| Method Detail |
public abstract short getDescender()
public float getDescender(float fontSize)
fontSize - float font size to use for the calculation.
public abstract short getAscender()
public short getLineGap()
public abstract LineBreaker getLineBreaker()
public Encoder getEncoder()
public abstract java.lang.String getName()
public ResourceType getResourceType()
getResourceType in class ResourceResourceTypepublic abstract int getGlyphWidth(char glyph)
glyph - char Glyph whose mwidth is to be returned.
public TextLineList getTextLines(char[] text,
float width,
float height,
float fontSize)
TextLineList.
TextLineList
public TextLineList getTextLines(char[] text,
float width,
float fontSize)
TextLineList.
TextLineList
public float getTextWidth(char[] text,
float fontSize)
text - char[] array or text whose width is returned.fontSize - float font size of text.
public float getTextWidth(java.lang.String text,
float fontSize)
text - String text whose width is returned.fontSize - float font size of text.
public float getAscender(float fontSize)
fontSize - float font size to use for the calculation.
public float getLineGap(float fontSize)
fontSize - float font size to use for the calculation.
public float getDefaultLeading(float fontSize)
fontSize - float font size to use for the calculation.
public float getBaseLine(float fontSize,
float leading)
fontSize - float font size to use for the calculation.leading - float leading to use for the calculation.
public static FormFont getTimesRoman()
public static FormFont getTimesBold()
public static FormFont getTimesItalic()
public static FormFont getTimesBoldItalic()
public static FormFont getHelvetica()
public static FormFont getHelveticaBold()
public static FormFont getHelveticaOblique()
public static FormFont getHelveticaBoldOblique()
public static FormFont getCourier()
public static FormFont getCourierBold()
public static FormFont getCourierOblique()
public static FormFont getCourierBoldOblique()
public static FormFont getSymbol()
public static FormFont getZapfDingbats()
public static Font getHeiseiKakuGothicW5()
public static Font getHeiseiMinchoW3()
public static Font getHanyangSystemsGothicMedium()
public static Font getHanyangSystemsShinMyeongJoMedium()
public static Font getMonotypeHeiMedium()
public static Font getMonotypeSungLight()
public static Font getSinoTypeSongLight()
public static Font getCeTeBullets()
|
DynamicPDF by ceTe Software | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||