Class TrueTypeFont
java.lang.Object
de.erichseifert.vectorgraphics2d.pdf.TrueTypeFont
- All Implemented Interfaces:
PDFObject
Represents a TrueType font in the sense of the PDF specification.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTrueTypeFont
(String encoding, String baseFont) Creates aTrueTypeFont
with the specified encoding and base font. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the base font.Returns the encoding of this font.Returns the subtype of this object.getType()
Returns the type of this object.
-
Field Details
-
encoding
-
baseFont
-
-
Constructor Details
-
TrueTypeFont
Creates aTrueTypeFont
with the specified encoding and base font.- Parameters:
encoding
- Used encoding.baseFont
- Base font name.
-
-
Method Details
-
getEncoding
Returns the encoding of this font.- Returns:
- Encoding.
-
getType
Returns the type of this object. Always returns "Font".- Returns:
- The String "Font".
-
getSubtype
Returns the subtype of this object. Always returns "TrueType".- Returns:
- The String "TrueType".
-
getBaseFont
Returns the name of the base font.- Returns:
- Base font name.
-