PDF Clown
0.1.2

org.pdfclown.documents.contents.fonts
Class SimpleFont

java.lang.Object
  extended by org.pdfclown.objects.PdfObjectWrapper<PdfDictionary>
      extended by org.pdfclown.documents.contents.fonts.Font
          extended by org.pdfclown.documents.contents.fonts.SimpleFont
All Implemented Interfaces:
Cloneable, IPdfObjectWrapper
Direct Known Subclasses:
TrueTypeFont, Type1Font, Type3Font

@PDF(value=PDF10)
public abstract class SimpleFont
extends Font

Simple font [PDF:1.6:5.5].

Since:
0.0.8
Version:
0.1.1, 11/14/11
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Nested Class Summary
 
Nested classes/interfaces inherited from class org.pdfclown.documents.contents.fonts.Font
Font.FlagsEnum
 
Field Summary
 
Fields inherited from class org.pdfclown.documents.contents.fonts.Font
codes, defaultGlyphWidth, glyphIndexes, glyphKernings, glyphWidths, symbolic, usedCodes
 
Constructor Summary
protected SimpleFont(Document context)
           
protected SimpleFont(PdfDirectObject baseObject)
           
 
Method Summary
protected  PdfDictionary getDescriptor()
          Gets the font descriptor.
protected abstract  void loadEncoding()
           
protected  void loadEncodingDifferences(PdfDictionary encodingDictionary, Map<ByteArray,Integer> codes)
          Loads the encoding differences into the given collection.
protected  void onLoad()
          Notifies the loading of font information from an existing PDF font structure.
 
Methods inherited from class org.pdfclown.documents.contents.fonts.Font
decode, encode, equals, get, get, get, getAscent, getAscent, getDescent, getDescent, getFlags, 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, clone, delete, exists, getBaseDataObject, getBaseObject, getBaseObject, getContainer, getDataContainer, getDocument, getFile, getMetadata, retrieveName, retrieveNamedBaseObject, setBaseObject, setMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFont

protected SimpleFont(Document context)

SimpleFont

protected SimpleFont(PdfDirectObject baseObject)
Method Detail

getDescriptor

protected PdfDictionary getDescriptor()
Description copied from class: Font
Gets the font descriptor.

Specified by:
getDescriptor in class Font

loadEncoding

protected abstract void loadEncoding()

loadEncodingDifferences

protected void loadEncodingDifferences(PdfDictionary encodingDictionary,
                                       Map<ByteArray,Integer> codes)
Loads the encoding differences into the given collection.

Parameters:
encodingDictionary - Encoding dictionary.
codes - Encoding to alter applying differences.

onLoad

protected void onLoad()
Description copied from class: Font
Notifies the loading of font information from an existing PDF font structure.

Specified by:
onLoad in class Font

PDF Clown
0.1.2

Project home page

Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.