public class PCLTTFFontReader extends PCLFontReader
Modifier and Type | Field and Description |
---|---|
protected java.io.InputStream |
fontStream |
protected FontFileReader |
reader |
protected TTFFile |
ttfFont |
font, typeface
Constructor and Description |
---|
PCLTTFFontReader(Typeface font) |
Modifier and Type | Method and Description |
---|---|
protected byte[] |
createHmtx(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) |
int |
getBaselinePosition() |
int |
getCapHeight() |
int |
getCellHeight() |
int |
getCellWidth() |
java.util.Map<java.lang.Integer,int[]> |
getCharacterOffsets()
Character Definitions
|
protected static int |
getCheckSum(byte[] data,
int start,
int size) |
int |
getDescriptorSize()
Header Data
|
int |
getFirstCode() |
OpenFont |
getFontFile() |
FontFileReader |
getFontFileReader() |
java.lang.String |
getFontName() |
int |
getFontNumber() |
int |
getFontScalingTechnology() |
java.util.List<PCLFontSegment> |
getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs)
Segmented Font Data
|
int |
getFontType() |
int |
getHeaderFormat() |
int |
getHeight() |
int |
getHeightExtended() |
int |
getLastCode() |
int |
getMasterUnderlinePosition() |
int |
getMasterUnderlineThickness() |
int |
getOrientation() |
int |
getPitch() |
int |
getPitchExtended() |
int |
getPlacement() |
int |
getQuality() |
int |
getScaleFactor() |
int |
getSerifStyle() |
int |
getSpacing() |
int |
getStrokeWeight() |
int |
getStyleLSB() |
int |
getStyleMSB() |
int |
getSymbolSet() |
int |
getTextHeight() |
int |
getTextWidth() |
int |
getTypefaceLSB() |
int |
getTypefaceMSB() |
int |
getUnderlinePosition() |
int |
getUnderlineThickness() |
int |
getVariety() |
int |
getWidthType() |
int |
getXHeight() |
protected void |
loadFont() |
protected void |
readFontTables() |
java.util.Map<java.lang.Integer,java.lang.Integer> |
scanMtxCharacters() |
getLSB, getMSB, setFont
protected TTFFile ttfFont
protected java.io.InputStream fontStream
protected FontFileReader reader
public PCLTTFFontReader(Typeface font) throws java.io.IOException
java.io.IOException
protected void loadFont() throws java.io.IOException
java.io.IOException
protected void readFontTables() throws java.io.IOException
java.io.IOException
public int getDescriptorSize()
PCLFontReader
getDescriptorSize
in class PCLFontReader
public int getHeaderFormat()
getHeaderFormat
in class PCLFontReader
public int getFontType()
getFontType
in class PCLFontReader
public int getStyleMSB()
getStyleMSB
in class PCLFontReader
public int getBaselinePosition()
getBaselinePosition
in class PCLFontReader
public int getCellWidth()
getCellWidth
in class PCLFontReader
public int getCellHeight()
getCellHeight
in class PCLFontReader
public int getOrientation()
getOrientation
in class PCLFontReader
public int getSpacing()
getSpacing
in class PCLFontReader
public int getSymbolSet()
getSymbolSet
in class PCLFontReader
public int getPitch()
getPitch
in class PCLFontReader
public int getHeight()
getHeight
in class PCLFontReader
public int getXHeight()
getXHeight
in class PCLFontReader
public int getWidthType()
getWidthType
in class PCLFontReader
public int getStyleLSB()
getStyleLSB
in class PCLFontReader
public int getStrokeWeight()
getStrokeWeight
in class PCLFontReader
public int getTypefaceLSB()
getTypefaceLSB
in class PCLFontReader
public int getTypefaceMSB()
getTypefaceMSB
in class PCLFontReader
public int getSerifStyle()
getSerifStyle
in class PCLFontReader
public int getQuality()
getQuality
in class PCLFontReader
public int getPlacement()
getPlacement
in class PCLFontReader
public int getUnderlinePosition()
getUnderlinePosition
in class PCLFontReader
public int getUnderlineThickness()
getUnderlineThickness
in class PCLFontReader
public int getTextHeight()
getTextHeight
in class PCLFontReader
public int getTextWidth()
getTextWidth
in class PCLFontReader
public int getFirstCode()
getFirstCode
in class PCLFontReader
public int getLastCode()
getLastCode
in class PCLFontReader
public int getPitchExtended()
getPitchExtended
in class PCLFontReader
public int getHeightExtended()
getHeightExtended
in class PCLFontReader
public int getCapHeight()
getCapHeight
in class PCLFontReader
public int getFontNumber()
getFontNumber
in class PCLFontReader
public java.lang.String getFontName()
getFontName
in class PCLFontReader
public int getScaleFactor() throws java.io.IOException
getScaleFactor
in class PCLFontReader
java.io.IOException
public int getMasterUnderlinePosition() throws java.io.IOException
getMasterUnderlinePosition
in class PCLFontReader
java.io.IOException
public int getMasterUnderlineThickness() throws java.io.IOException
getMasterUnderlineThickness
in class PCLFontReader
java.io.IOException
public int getFontScalingTechnology()
getFontScalingTechnology
in class PCLFontReader
public int getVariety()
getVariety
in class PCLFontReader
public java.util.List<PCLFontSegment> getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) throws java.io.IOException
PCLFontReader
getFontSegments
in class PCLFontReader
java.io.IOException
public java.util.Map<java.lang.Integer,int[]> getCharacterOffsets() throws java.io.IOException
PCLFontReader
getCharacterOffsets
in class PCLFontReader
java.io.IOException
public OpenFont getFontFile()
getFontFile
in class PCLFontReader
public FontFileReader getFontFileReader()
getFontFileReader
in class PCLFontReader
protected static int getCheckSum(byte[] data, int start, int size)
protected byte[] createHmtx(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) throws java.io.IOException
java.io.IOException
public java.util.Map<java.lang.Integer,java.lang.Integer> scanMtxCharacters() throws java.io.IOException
scanMtxCharacters
in class PCLFontReader
java.io.IOException
Copyright 1999-2017 The Apache Software Foundation. All Rights Reserved.