Class PCLTTFFontReader
java.lang.Object
org.apache.fop.render.pcl.fonts.PCLFontReader
org.apache.fop.render.pcl.fonts.truetype.PCLTTFFontReader
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected InputStreamprotected FontFileReaderprotected TTFFileFields inherited from class org.apache.fop.render.pcl.fonts.PCLFontReader
font, typeface -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected byte[]createHmtx(Map<Character, Integer> mappedGlyphs) intintintintCharacter Definitionsprotected static intgetCheckSum(byte[] data, int start, int size) intHeader DataintintintgetFontSegments(Map<Character, Integer> mappedGlyphs) Segmented Font DataintintintintintintintintintgetPitch()intintintintintintintintintintintintintintintintintintintprotected voidloadFont()protected voidMethods inherited from class org.apache.fop.render.pcl.fonts.PCLFontReader
getLSB, getMSB, setFont
-
Field Details
-
ttfFont
-
fontStream
-
reader
-
-
Constructor Details
-
PCLTTFFontReader
- Throws:
IOException
-
-
Method Details
-
loadFont
- Throws:
IOException
-
readFontTables
- Throws:
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
- Specified by:
getFontNamein classPCLFontReader
-
getScaleFactor
- Specified by:
getScaleFactorin classPCLFontReader- Throws:
IOException
-
getMasterUnderlinePosition
- Specified by:
getMasterUnderlinePositionin classPCLFontReader- Throws:
IOException
-
getMasterUnderlineThickness
- Specified by:
getMasterUnderlineThicknessin classPCLFontReader- Throws:
IOException
-
getFontScalingTechnology
public int getFontScalingTechnology()- Specified by:
getFontScalingTechnologyin classPCLFontReader
-
getVariety
public int getVariety()- Specified by:
getVarietyin classPCLFontReader
-
getFontSegments
Description copied from class:PCLFontReaderSegmented Font Data- Specified by:
getFontSegmentsin classPCLFontReader- Throws:
IOException
-
getCharacterOffsets
Description copied from class:PCLFontReaderCharacter Definitions- Specified by:
getCharacterOffsetsin classPCLFontReader- Throws:
IOException
-
getFontFile
- Specified by:
getFontFilein classPCLFontReader
-
getFontFileReader
- Specified by:
getFontFileReaderin classPCLFontReader
-
getCheckSum
protected static int getCheckSum(byte[] data, int start, int size) -
createHmtx
-
scanMtxCharacters
- Specified by:
scanMtxCharactersin classPCLFontReader- Throws:
IOException
-