Package com.dynamicpdf.api
Class Font
java.lang.Object
com.dynamicpdf.api.Font
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic FontInitializes a new instance of theFontclass using the file path of the font and resource name.static FontInitializes a new instance of theFontclass using the file path of the font and resource name.static FontfromStream(InputStream stream)Initializes a new instance of theFontclass using the file path of the font and resource name.static FontfromStream(InputStream stream, String resourceName)Initializes a new instance of theFontclass using the stream of the font file and resource name.static FontfromSystem(String fontName)Initializes a new instance of theFontclass using the system font name and resource name.static FontfromSystem(String fontName, String resourceName)Initializes a new instance of theFontclass using the system font name and resource name.static FontGets the Courier core font with Latin 1 encoding.static FontGets the Courier Bold core font with Latin 1 encoding.static FontGets the Courier Bold Oblique core font with Latin 1 encoding.static FontGets the Courier Oblique core font with Latin 1 encoding.booleangetEmbed()Gets a boolean indicating whether to embed the font.static FontGets the Helvetica core font with Latin 1 encoding.static FontGets the Helvetica Bold core font with Latin 1 encoding.static FontGets the Helvetica Bold Oblique core font with Latin 1 encoding.static FontGets the Helvetica Oblique core font with Latin 1 encoding.getName()Gets the name of the fontcom.dynamicpdf.api.FontResourceGets the font resourceGets a name for the font resource.booleanGets a boolean indicating whether to subset embed the font.static FontGets the Symbol core font.static FontGets the Times Bold core font with Latin 1 encoding.static FontGets the Times Bold Italic core font with Latin 1 encoding.static FontGets the Times Italic core font with Latin 1 encoding.static FontGets the Times Roman core font with Latin 1 encoding.static FontGets the Zapf Dingbats core font.voidsetEmbed(boolean value)Sets a boolean indicating whether to embed the font.voidsetResourceName(String value)Sets a name for the font resource.voidsetSubset(boolean value)Sets a boolean indicating whether to subset embed the font. 
- 
Constructor Details
- 
Font
Initializes a new instance of theFontclass using the font name that is present in the cloud resource manager.- Parameters:
 cloudResourceName- The font name present in the cloud resource manager.
 
 - 
 - 
Method Details
- 
getName
Gets the name of the font- Returns:
 - The name of the font
 
 - 
getResource
public com.dynamicpdf.api.FontResource getResource()Gets the font resource- Returns:
 - The font resource
 
 - 
getEmbed
public boolean getEmbed()Gets a boolean indicating whether to embed the font.- Returns:
 - A boolean indicating whether to embed the font.
 
 - 
setEmbed
public void setEmbed(boolean value)Sets a boolean indicating whether to embed the font.- Parameters:
 value- A boolean indicating whether to embed the font.
 - 
getSubset
public boolean getSubset()Gets a boolean indicating whether to subset embed the font.- Returns:
 - A boolean indicating whether to subset embed the font.
 
 - 
setSubset
public void setSubset(boolean value)Sets a boolean indicating whether to subset embed the font.- Parameters:
 value- A boolean indicating whether to subset embed the font.
 - 
getResourceName
Gets a name for the font resource.- Returns:
 - A name for the font resource.
 
 - 
setResourceName
Sets a name for the font resource.- Parameters:
 value- A name for the font resource.
 - 
getTimesRoman
Gets the Times Roman core font with Latin 1 encoding.- Returns:
 - The Times Roman core font with Latin 1 encoding.
 
 - 
getTimesBold
Gets the Times Bold core font with Latin 1 encoding.- Returns:
 - The Times Bold core font with Latin 1 encoding.
 
 - 
getTimesItalic
Gets the Times Italic core font with Latin 1 encoding.- Returns:
 - The Times Italic core font with Latin 1 encoding.
 
 - 
getTimesBoldItalic
Gets the Times Bold Italic core font with Latin 1 encoding.- Returns:
 - The Times Bold Italic core font with Latin 1 encoding.
 
 - 
getHelvetica
Gets the Helvetica core font with Latin 1 encoding.- Returns:
 - The Helvetica core font with Latin 1 encoding.
 
 - 
getHelveticaBold
Gets the Helvetica Bold core font with Latin 1 encoding.- Returns:
 - The Helvetica Bold core font with Latin 1 encoding.
 
 - 
getHelveticaOblique
Gets the Helvetica Oblique core font with Latin 1 encoding.- Returns:
 - The Helvetica Oblique core font with Latin 1 encoding.
 
 - 
getHelveticaBoldOblique
Gets the Helvetica Bold Oblique core font with Latin 1 encoding.- Returns:
 - The Helvetica Bold Oblique core font with Latin 1 encoding.
 
 - 
getCourier
Gets the Courier core font with Latin 1 encoding.- Returns:
 - The Courier core font with Latin 1 encoding.
 
 - 
getCourierBold
Gets the Courier Bold core font with Latin 1 encoding.- Returns:
 - The Courier Bold core font with Latin 1 encoding.
 
 - 
getCourierOblique
Gets the Courier Oblique core font with Latin 1 encoding.- Returns:
 - The Courier Oblique core font with Latin 1 encoding.
 
 - 
getCourierBoldOblique
Gets the Courier Bold Oblique core font with Latin 1 encoding.- Returns:
 - The Courier Bold Oblique core font with Latin 1 encoding.
 
 - 
getSymbol
Gets the Symbol core font.- Returns:
 - The Symbol core font.
 
 - 
getZapfDingbats
Gets the Zapf Dingbats core font.- Returns:
 - The Zapf Dingbats core font.
 
 - 
fromFile
Initializes a new instance of theFontclass using the file path of the font and resource name.- Parameters:
 filePath- The file path of the font file.resourceName- The resource name for the font.- Returns:
 - The font
 
 - 
fromFile
Initializes a new instance of theFontclass using the file path of the font and resource name.- Parameters:
 filePath- The file path of the font file.- Returns:
 - The file path of the font file.
 
 - 
fromStream
Initializes a new instance of theFontclass using the stream of the font file and resource name.- Parameters:
 stream- The stream of the font file.resourceName- The resource name for the font.- Returns:
 - The font
 
 - 
fromStream
Initializes a new instance of theFontclass using the file path of the font and resource name.- Parameters:
 stream- The stream of the font file.- Returns:
 - The font from stream
 
 - 
fromSystem
Initializes a new instance of theFontclass using the system font name and resource name.- Parameters:
 fontName- The name of the font in the system.resourceName- The resource name for the font.- Returns:
 - The font from system.
 
 - 
fromSystem
Initializes a new instance of theFontclass using the system font name and resource name.- Parameters:
 fontName- The name of the font in the system.- Returns:
 - The font from system.
 
 
 -