org.pdfclown.documents.contents.fonts
Class StandardType1Font
java.lang.Object
org.pdfclown.objects.PdfObjectWrapper<PdfDictionary>
org.pdfclown.documents.contents.fonts.Font
org.pdfclown.documents.contents.fonts.SimpleFont
org.pdfclown.documents.contents.fonts.Type1Font
org.pdfclown.documents.contents.fonts.StandardType1Font
- All Implemented Interfaces:
- Cloneable, IPdfObjectWrapper
@PDF(value=PDF10)
public final class StandardType1Font
- extends Type1Font
Standard Type 1 font [PDF:1.6:5.5.1].
- Version:
- 0.1.2, 12/21/12
- Author:
- Stefano Chizzolini (http://www.stefanochizzolini.it)
Nested classes/interfaces inherited from class org.pdfclown.documents.contents.fonts.Font |
Font.FlagsEnum |
Fields inherited from class org.pdfclown.documents.contents.fonts.Type1Font |
metrics |
Methods inherited from class org.pdfclown.documents.contents.fonts.Font |
decode, encode, equals, get, get, get, getAscent, getDescent, getHeight, getHeight, getHeight, getHeight, getKernedWidth, getKerning, getKerning, getKerning, getLineHeight, getLineHeight, getName, getScalingFactor, getWidth, getWidth, getWidth, getWidth, hashCode, isSymbolic, load, wrap |
Methods inherited from class org.pdfclown.objects.PdfObjectWrapper |
checkCompatibility, delete, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata |
StandardType1Font
public StandardType1Font(Document context,
StandardType1Font.FamilyEnum family,
boolean bold,
boolean italic)
clone
public StandardType1Font clone(Document context)
- Description copied from class:
PdfObjectWrapper
- Gets a clone of the object, registered inside the given document context.
- Overrides:
clone
in class Type1Font
- Parameters:
context
- Which document the clone has to be registered in.
getAscent
public double getAscent()
- Description copied from class:
Font
- Gets the unscaled vertical offset from the baseline to the ascender line (ascent).
The value is a positive number.
- Overrides:
getAscent
in class Font
getDescent
public double getDescent()
- Description copied from class:
Font
- Gets the unscaled vertical offset from the baseline to the descender line (descent).
The value is a negative number.
- Overrides:
getDescent
in class Font
getFlags
public EnumSet<Font.FlagsEnum> getFlags()
- Description copied from class:
Font
- Gets the font descriptor flags.
- Overrides:
getFlags
in class Font
getNativeEncoding
protected Map<ByteArray,Integer> getNativeEncoding()
- Overrides:
getNativeEncoding
in class Type1Font
onLoad
protected void onLoad()
- Description copied from class:
Font
- Notifies the loading of font information from an existing PDF font structure.
- Overrides:
onLoad
in class SimpleFont
Project home page
Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.