Class PCLTTFFontReader
- java.lang.Object
-
- org.apache.fop.render.pcl.fonts.PCLFontReader
-
- org.apache.fop.render.pcl.fonts.truetype.PCLTTFFontReader
-
public class PCLTTFFontReader extends PCLFontReader
-
-
Field Summary
Fields Modifier and Type Field Description protected java.io.InputStreamfontStreamprotected FontFileReaderreaderprotected TTFFilettfFont-
Fields inherited from class org.apache.fop.render.pcl.fonts.PCLFontReader
font, typeface
-
-
Constructor Summary
Constructors Constructor Description PCLTTFFontReader(Typeface font)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]createHmtx(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs)intgetBaselinePosition()intgetCapHeight()intgetCellHeight()intgetCellWidth()java.util.Map<java.lang.Integer,int[]>getCharacterOffsets()Character Definitionsprotected static intgetCheckSum(byte[] data, int start, int size)intgetDescriptorSize()Header DataintgetFirstCode()OpenFontgetFontFile()FontFileReadergetFontFileReader()java.lang.StringgetFontName()intgetFontNumber()intgetFontScalingTechnology()java.util.List<PCLFontSegment>getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs)Segmented Font DataintgetFontType()intgetHeaderFormat()intgetHeight()intgetHeightExtended()intgetLastCode()intgetMasterUnderlinePosition()intgetMasterUnderlineThickness()intgetOrientation()intgetPitch()intgetPitchExtended()intgetPlacement()intgetQuality()intgetScaleFactor()intgetSerifStyle()intgetSpacing()intgetStrokeWeight()intgetStyleLSB()intgetStyleMSB()intgetSymbolSet()intgetTextHeight()intgetTextWidth()intgetTypefaceLSB()intgetTypefaceMSB()intgetUnderlinePosition()intgetUnderlineThickness()intgetVariety()intgetWidthType()intgetXHeight()protected voidloadFont()protected voidreadFontTables()java.util.Map<java.lang.Integer,java.lang.Integer>scanMtxCharacters()-
Methods inherited from class org.apache.fop.render.pcl.fonts.PCLFontReader
getLSB, getMSB, setFont
-
-
-
-
Field Detail
-
ttfFont
protected TTFFile ttfFont
-
fontStream
protected java.io.InputStream fontStream
-
reader
protected FontFileReader reader
-
-
Constructor Detail
-
PCLTTFFontReader
public PCLTTFFontReader(Typeface font) throws java.io.IOException
- Throws:
java.io.IOException
-
-
Method Detail
-
loadFont
protected void loadFont() throws java.io.IOException- Throws:
java.io.IOException
-
readFontTables
protected void readFontTables() throws java.io.IOException- Throws:
java.io.IOException
-
getDescriptorSize
public int getDescriptorSize()
Description copied from class:PCLFontReaderHeader Data- Specified by:
getDescriptorSizein classPCLFontReader
-
getHeaderFormat
public int getHeaderFormat()
- Specified by:
getHeaderFormatin classPCLFontReader
-
getFontType
public int getFontType()
- Specified by:
getFontTypein classPCLFontReader
-
getStyleMSB
public int getStyleMSB()
- Specified by:
getStyleMSBin classPCLFontReader
-
getBaselinePosition
public int getBaselinePosition()
- Specified by:
getBaselinePositionin classPCLFontReader
-
getCellWidth
public int getCellWidth()
- Specified by:
getCellWidthin classPCLFontReader
-
getCellHeight
public int getCellHeight()
- Specified by:
getCellHeightin classPCLFontReader
-
getOrientation
public int getOrientation()
- Specified by:
getOrientationin classPCLFontReader
-
getSpacing
public int getSpacing()
- Specified by:
getSpacingin classPCLFontReader
-
getSymbolSet
public int getSymbolSet()
- Specified by:
getSymbolSetin classPCLFontReader
-
getPitch
public int getPitch()
- Specified by:
getPitchin classPCLFontReader
-
getHeight
public int getHeight()
- Specified by:
getHeightin classPCLFontReader
-
getXHeight
public int getXHeight()
- Specified by:
getXHeightin classPCLFontReader
-
getWidthType
public int getWidthType()
- Specified by:
getWidthTypein classPCLFontReader
-
getStyleLSB
public int getStyleLSB()
- Specified by:
getStyleLSBin classPCLFontReader
-
getStrokeWeight
public int getStrokeWeight()
- Specified by:
getStrokeWeightin classPCLFontReader
-
getTypefaceLSB
public int getTypefaceLSB()
- Specified by:
getTypefaceLSBin classPCLFontReader
-
getTypefaceMSB
public int getTypefaceMSB()
- Specified by:
getTypefaceMSBin classPCLFontReader
-
getSerifStyle
public int getSerifStyle()
- Specified by:
getSerifStylein classPCLFontReader
-
getQuality
public int getQuality()
- Specified by:
getQualityin classPCLFontReader
-
getPlacement
public int getPlacement()
- Specified by:
getPlacementin classPCLFontReader
-
getUnderlinePosition
public int getUnderlinePosition()
- Specified by:
getUnderlinePositionin classPCLFontReader
-
getUnderlineThickness
public int getUnderlineThickness()
- Specified by:
getUnderlineThicknessin classPCLFontReader
-
getTextHeight
public int getTextHeight()
- Specified by:
getTextHeightin classPCLFontReader
-
getTextWidth
public int getTextWidth()
- Specified by:
getTextWidthin classPCLFontReader
-
getFirstCode
public int getFirstCode()
- Specified by:
getFirstCodein classPCLFontReader
-
getLastCode
public int getLastCode()
- Specified by:
getLastCodein classPCLFontReader
-
getPitchExtended
public int getPitchExtended()
- Specified by:
getPitchExtendedin classPCLFontReader
-
getHeightExtended
public int getHeightExtended()
- Specified by:
getHeightExtendedin classPCLFontReader
-
getCapHeight
public int getCapHeight()
- Specified by:
getCapHeightin classPCLFontReader
-
getFontNumber
public int getFontNumber()
- Specified by:
getFontNumberin classPCLFontReader
-
getFontName
public java.lang.String getFontName()
- Specified by:
getFontNamein classPCLFontReader
-
getScaleFactor
public int getScaleFactor() throws java.io.IOException- Specified by:
getScaleFactorin classPCLFontReader- Throws:
java.io.IOException
-
getMasterUnderlinePosition
public int getMasterUnderlinePosition() throws java.io.IOException- Specified by:
getMasterUnderlinePositionin classPCLFontReader- Throws:
java.io.IOException
-
getMasterUnderlineThickness
public int getMasterUnderlineThickness() throws java.io.IOException- Specified by:
getMasterUnderlineThicknessin classPCLFontReader- Throws:
java.io.IOException
-
getFontScalingTechnology
public int getFontScalingTechnology()
- Specified by:
getFontScalingTechnologyin classPCLFontReader
-
getVariety
public int getVariety()
- Specified by:
getVarietyin classPCLFontReader
-
getFontSegments
public java.util.List<PCLFontSegment> getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) throws java.io.IOException
Description copied from class:PCLFontReaderSegmented Font Data- Specified by:
getFontSegmentsin classPCLFontReader- Throws:
java.io.IOException
-
getCharacterOffsets
public java.util.Map<java.lang.Integer,int[]> getCharacterOffsets() throws java.io.IOExceptionDescription copied from class:PCLFontReaderCharacter Definitions- Specified by:
getCharacterOffsetsin classPCLFontReader- Throws:
java.io.IOException
-
getFontFile
public OpenFont getFontFile()
- Specified by:
getFontFilein classPCLFontReader
-
getFontFileReader
public FontFileReader getFontFileReader()
- Specified by:
getFontFileReaderin classPCLFontReader
-
getCheckSum
protected static int getCheckSum(byte[] data, int start, int size)
-
createHmtx
protected byte[] createHmtx(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) throws java.io.IOException- Throws:
java.io.IOException
-
scanMtxCharacters
public java.util.Map<java.lang.Integer,java.lang.Integer> scanMtxCharacters() throws java.io.IOException- Specified by:
scanMtxCharactersin classPCLFontReader- Throws:
java.io.IOException
-
-