|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cete.dynamicpdf.Resource
com.cete.dynamicpdf.Font
com.cete.dynamicpdf.text.WebOpenFont
public class WebOpenFont
Represents an web open font.
View Example
Constructor Summary | |
---|---|
WebOpenFont(byte[] bytes)
Initializes a new instance of WebOpenFont class. |
|
WebOpenFont(java.lang.String filePath)
Initializes a new instance of WebOpenFont class. |
Method Summary | |
---|---|
void |
draw(DocumentWriter writer)
Draw the opentype font data to the DocumentWriter . |
short |
getAscender()
Gets the ascender for the font. |
short |
getDescender()
Gets the descender for the font. |
boolean |
getEmbed()
Gets a value indicating whether the font need to be embedded in to the pdf. |
FontSubsetter |
getFontSubsetter()
Returns a font subsetter for the opentype font. |
int |
getGlyphWidth(char glyph)
Returns the mwidth of the given char. |
float |
getKernValue(char left,
char right)
Returns the kern value corresponding to the given glyph combination. |
LineBreaker |
getLineBreaker()
Gets the instance of LineBreaker used for the font. |
short |
getLineGap()
Gets the line gap for the font. |
java.lang.String |
getName()
Gets the font name for the file given. |
com.cete.dynamicpdf.text.opentypefonttables.OutLineType |
getOutLineType()
Gets the OutLineType of the web open font. |
int |
getRequiredPdfObjects()
Gets the required pdf objects. |
ResourceType |
getResourceType()
Gets the value of ResourceType . |
boolean |
getSubset()
Gets a value indicating whether the font need to subset while embedding. |
boolean |
hasKerning()
Returns whether the font has inbuilt kerning pairs. |
void |
setEmbed(boolean value)
Sets a value indicating whether the font need to be embedded in to the pdf. |
void |
setSubset(boolean value)
Sets a value indicating whether the font need to subset while embedding. |
short |
ZInternal_getBoundingBoxBottom()
|
short |
ZInternal_getBoundingBoxTop()
|
short |
ZInternal_getStrikeOutPosition()
|
short |
ZInternal_getStrikeOutSize()
|
short |
ZInternal_getUnderlinePosition()
|
short |
ZInternal_getUnderlineThickness()
|
Methods inherited from class com.cete.dynamicpdf.Resource |
---|
getUid, newUid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WebOpenFont(java.lang.String filePath)
WebOpenFont
class.
filePath
- Physical file path of the web open font file.public WebOpenFont(byte[] bytes)
WebOpenFont
class.
bytes
- Bytes containing the web open font data.Method Detail |
---|
public void draw(DocumentWriter writer)
DocumentWriter
.
draw
in class Resource
writer
- DocumentWriter
object used to receive the web
open font output.DocumentWriter
public FontSubsetter getFontSubsetter()
getFontSubsetter
in interface IFontSubsettable
FontSubsetter
object used for the font.FontSubsetter
public int getGlyphWidth(char glyph)
getGlyphWidth
in class Font
glyph
- Glyph whose mwidth is required.
public float getKernValue(char left, char right)
getKernValue
in class Font
left
- Left glyph.right
- Right glyph.
public boolean hasKerning()
hasKerning
in class Font
public short getAscender()
getAscender
in class Font
public short getDescender()
getDescender
in class Font
public boolean getEmbed()
public void setEmbed(boolean value)
value
- indicating whether the font need to be embedded in to the pdf.public LineBreaker getLineBreaker()
LineBreaker
used for the font.
getLineBreaker
in class Font
public short getLineGap()
getLineGap
in class Font
public java.lang.String getName()
getName
in class Font
public com.cete.dynamicpdf.text.opentypefonttables.OutLineType getOutLineType()
OutLineType
of the web open font.
public int getRequiredPdfObjects()
getRequiredPdfObjects
in class Resource
public ResourceType getResourceType()
ResourceType
.
getResourceType
in class Font
ResourceType
public boolean getSubset()
public void setSubset(boolean value)
value
- indicating whether the font need to subset while embedding.public short ZInternal_getBoundingBoxTop()
public short ZInternal_getBoundingBoxBottom()
public short ZInternal_getStrikeOutSize()
public short ZInternal_getStrikeOutPosition()
public short ZInternal_getUnderlinePosition()
public short ZInternal_getUnderlineThickness()
|
DynamicPDF by ceTe Software | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |