Package org.apache.fop.render.pcl.fonts
Class PCLFontReader
- java.lang.Object
-
- org.apache.fop.render.pcl.fonts.PCLFontReader
-
- Direct Known Subclasses:
PCLTTFFontReader
public abstract class PCLFontReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected CustomFontfontprotected Typefacetypeface
-
Constructor Summary
Constructors Constructor Description PCLFontReader(Typeface font)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract intgetBaselinePosition()abstract intgetCapHeight()abstract intgetCellHeight()abstract intgetCellWidth()abstract java.util.Map<java.lang.Integer,int[]>getCharacterOffsets()Character Definitionsabstract intgetDescriptorSize()Header Dataabstract intgetFirstCode()abstract OpenFontgetFontFile()abstract FontFileReadergetFontFileReader()abstract java.lang.StringgetFontName()abstract intgetFontNumber()abstract intgetFontScalingTechnology()abstract java.util.List<PCLFontSegment>getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs)Segmented Font Dataabstract intgetFontType()abstract intgetHeaderFormat()abstract intgetHeight()abstract intgetHeightExtended()abstract intgetLastCode()protected intgetLSB(int s)Gets the least significant byte from a 16-bit integerabstract intgetMasterUnderlinePosition()abstract intgetMasterUnderlineThickness()protected intgetMSB(int s)Gets the most significant byte from a 16-bit integerabstract intgetOrientation()abstract intgetPitch()abstract intgetPitchExtended()abstract intgetPlacement()abstract intgetQuality()abstract intgetScaleFactor()abstract intgetSerifStyle()abstract intgetSpacing()abstract intgetStrokeWeight()abstract intgetStyleLSB()abstract intgetStyleMSB()abstract intgetSymbolSet()abstract intgetTextHeight()abstract intgetTextWidth()abstract intgetTypefaceLSB()abstract intgetTypefaceMSB()abstract intgetUnderlinePosition()abstract intgetUnderlineThickness()abstract intgetVariety()abstract intgetWidthType()abstract intgetXHeight()abstract java.util.Map<java.lang.Integer,java.lang.Integer>scanMtxCharacters()voidsetFont(CustomFont mbFont)
-
-
-
Field Detail
-
typeface
protected Typeface typeface
-
font
protected CustomFont font
-
-
Constructor Detail
-
PCLFontReader
public PCLFontReader(Typeface font)
-
-
Method Detail
-
setFont
public void setFont(CustomFont mbFont)
-
getDescriptorSize
public abstract int getDescriptorSize()
Header Data
-
getHeaderFormat
public abstract int getHeaderFormat()
-
getFontType
public abstract int getFontType()
-
getStyleMSB
public abstract int getStyleMSB()
-
getBaselinePosition
public abstract int getBaselinePosition()
-
getCellWidth
public abstract int getCellWidth()
-
getCellHeight
public abstract int getCellHeight()
-
getOrientation
public abstract int getOrientation()
-
getSpacing
public abstract int getSpacing()
-
getSymbolSet
public abstract int getSymbolSet()
-
getPitch
public abstract int getPitch()
-
getHeight
public abstract int getHeight()
-
getXHeight
public abstract int getXHeight()
-
getWidthType
public abstract int getWidthType()
-
getStyleLSB
public abstract int getStyleLSB()
-
getStrokeWeight
public abstract int getStrokeWeight()
-
getTypefaceLSB
public abstract int getTypefaceLSB()
-
getTypefaceMSB
public abstract int getTypefaceMSB()
-
getSerifStyle
public abstract int getSerifStyle()
-
getQuality
public abstract int getQuality()
-
getPlacement
public abstract int getPlacement()
-
getUnderlinePosition
public abstract int getUnderlinePosition()
-
getUnderlineThickness
public abstract int getUnderlineThickness()
-
getTextHeight
public abstract int getTextHeight()
-
getTextWidth
public abstract int getTextWidth()
-
getFirstCode
public abstract int getFirstCode()
-
getLastCode
public abstract int getLastCode()
-
getPitchExtended
public abstract int getPitchExtended()
-
getHeightExtended
public abstract int getHeightExtended()
-
getCapHeight
public abstract int getCapHeight()
-
getFontNumber
public abstract int getFontNumber()
-
getFontName
public abstract java.lang.String getFontName()
-
getScaleFactor
public abstract int getScaleFactor() throws java.io.IOException- Throws:
java.io.IOException
-
getMasterUnderlinePosition
public abstract int getMasterUnderlinePosition() throws java.io.IOException- Throws:
java.io.IOException
-
getMasterUnderlineThickness
public abstract int getMasterUnderlineThickness() throws java.io.IOException- Throws:
java.io.IOException
-
getFontScalingTechnology
public abstract int getFontScalingTechnology()
-
getVariety
public abstract int getVariety()
-
scanMtxCharacters
public abstract java.util.Map<java.lang.Integer,java.lang.Integer> scanMtxCharacters() throws java.io.IOException- Throws:
java.io.IOException
-
getFontSegments
public abstract java.util.List<PCLFontSegment> getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) throws java.io.IOException
Segmented Font Data- Throws:
java.io.IOException
-
getCharacterOffsets
public abstract java.util.Map<java.lang.Integer,int[]> getCharacterOffsets() throws java.io.IOExceptionCharacter Definitions- Throws:
java.io.IOException
-
getFontFile
public abstract OpenFont getFontFile()
-
getFontFileReader
public abstract FontFileReader getFontFileReader()
-
getMSB
protected int getMSB(int s)
Gets the most significant byte from a 16-bit integer- Parameters:
s- The number- Returns:
- The resulting byte value as an integer
-
getLSB
protected int getLSB(int s)
Gets the least significant byte from a 16-bit integer- Parameters:
s- The number- Returns:
- The resulting byte value as an integer
-
-