PDF Clown
0.0.8

it.stefanochizzolini.clown.documents.contents.fonts
Class StandardType1Font

java.lang.Object
  extended by it.stefanochizzolini.clown.objects.PdfObjectWrapper<PdfDictionary>
      extended by it.stefanochizzolini.clown.documents.contents.fonts.Font
          extended by it.stefanochizzolini.clown.documents.contents.fonts.SimpleFont
              extended by it.stefanochizzolini.clown.documents.contents.fonts.Type1Font
                  extended by it.stefanochizzolini.clown.documents.contents.fonts.StandardType1Font

public class StandardType1Font
extends Type1Font

Standard Type 1 font [PDF:1.6:5.5.1].

Version:
0.0.8
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)

Nested Class Summary
static class StandardType1Font.FamilyEnum
           
 
Nested classes/interfaces inherited from class it.stefanochizzolini.clown.documents.contents.fonts.Font
Font.FlagsEnum
 
Field Summary
 
Fields inherited from class it.stefanochizzolini.clown.documents.contents.fonts.Type1Font
metrics
 
Fields inherited from class it.stefanochizzolini.clown.documents.contents.fonts.Font
codes, defaultGlyphWidth, glyphIndexes, glyphKernings, glyphWidths, symbolic
 
Constructor Summary
StandardType1Font(Document context, StandardType1Font.FamilyEnum family, boolean bold, boolean italic)
           
StandardType1Font(PdfDirectObject baseObject)
          For internal use only.
 
Method Summary
 double getAscent()
          Gets the unscaled vertical offset from the baseline to the ascender line (ascent).
 double getDescent()
          Gets the unscaled vertical offset from the baseline to the descender line (descent).
 EnumSet<Font.FlagsEnum> getFlags()
          Gets the font descriptor flags.
protected  Map<ByteArray,Integer> getNativeEncoding()
           
protected  void onLoad()
          Notifies the loading of font information from an existing PDF font structure.
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.fonts.Type1Font
clone, loadEncoding
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.fonts.SimpleFont
getDescriptor, loadEncodingDifferences
 
Methods inherited from class it.stefanochizzolini.clown.documents.contents.fonts.Font
decode, encode, equals, get, get, get, getAscent, getDescent, getHeight, getHeight, getHeight, getHeight, getKernedWidth, getKerning, getKerning, getKerning, getLineHeight, getLineHeight, getName, getScalingFactor, getType, getWidth, getWidth, getWidth, getWidth, isSymbolic, load, wrap
 
Methods inherited from class it.stefanochizzolini.clown.objects.PdfObjectWrapper
delete, getBaseDataObject, getBaseObject, getContainer, getDocument, getFile, setBaseObject, setContainer, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardType1Font

public StandardType1Font(Document context,
                         StandardType1Font.FamilyEnum family,
                         boolean bold,
                         boolean italic)

StandardType1Font

public StandardType1Font(PdfDirectObject baseObject)
For internal use only.

Method Detail

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

PDF Clown
0.0.8

Project home page

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