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, setFontprotected TTFFile ttfFont
protected java.io.InputStream fontStream
protected FontFileReader reader
public PCLTTFFontReader(Typeface font) throws java.io.IOException
java.io.IOExceptionprotected void loadFont()
throws java.io.IOException
java.io.IOExceptionprotected void readFontTables()
throws java.io.IOException
java.io.IOExceptionpublic int getDescriptorSize()
PCLFontReadergetDescriptorSize in class PCLFontReaderpublic int getHeaderFormat()
getHeaderFormat in class PCLFontReaderpublic int getFontType()
getFontType in class PCLFontReaderpublic int getStyleMSB()
getStyleMSB in class PCLFontReaderpublic int getBaselinePosition()
getBaselinePosition in class PCLFontReaderpublic int getCellWidth()
getCellWidth in class PCLFontReaderpublic int getCellHeight()
getCellHeight in class PCLFontReaderpublic int getOrientation()
getOrientation in class PCLFontReaderpublic int getSpacing()
getSpacing in class PCLFontReaderpublic int getSymbolSet()
getSymbolSet in class PCLFontReaderpublic int getPitch()
getPitch in class PCLFontReaderpublic int getHeight()
getHeight in class PCLFontReaderpublic int getXHeight()
getXHeight in class PCLFontReaderpublic int getWidthType()
getWidthType in class PCLFontReaderpublic int getStyleLSB()
getStyleLSB in class PCLFontReaderpublic int getStrokeWeight()
getStrokeWeight in class PCLFontReaderpublic int getTypefaceLSB()
getTypefaceLSB in class PCLFontReaderpublic int getTypefaceMSB()
getTypefaceMSB in class PCLFontReaderpublic int getSerifStyle()
getSerifStyle in class PCLFontReaderpublic int getQuality()
getQuality in class PCLFontReaderpublic int getPlacement()
getPlacement in class PCLFontReaderpublic int getUnderlinePosition()
getUnderlinePosition in class PCLFontReaderpublic int getUnderlineThickness()
getUnderlineThickness in class PCLFontReaderpublic int getTextHeight()
getTextHeight in class PCLFontReaderpublic int getTextWidth()
getTextWidth in class PCLFontReaderpublic int getFirstCode()
getFirstCode in class PCLFontReaderpublic int getLastCode()
getLastCode in class PCLFontReaderpublic int getPitchExtended()
getPitchExtended in class PCLFontReaderpublic int getHeightExtended()
getHeightExtended in class PCLFontReaderpublic int getCapHeight()
getCapHeight in class PCLFontReaderpublic int getFontNumber()
getFontNumber in class PCLFontReaderpublic java.lang.String getFontName()
getFontName in class PCLFontReaderpublic int getScaleFactor()
throws java.io.IOException
getScaleFactor in class PCLFontReaderjava.io.IOExceptionpublic int getMasterUnderlinePosition()
throws java.io.IOException
getMasterUnderlinePosition in class PCLFontReaderjava.io.IOExceptionpublic int getMasterUnderlineThickness()
throws java.io.IOException
getMasterUnderlineThickness in class PCLFontReaderjava.io.IOExceptionpublic int getFontScalingTechnology()
getFontScalingTechnology in class PCLFontReaderpublic int getVariety()
getVariety in class PCLFontReaderpublic java.util.List<PCLFontSegment> getFontSegments(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs) throws java.io.IOException
PCLFontReadergetFontSegments in class PCLFontReaderjava.io.IOExceptionpublic java.util.Map<java.lang.Integer,int[]> getCharacterOffsets()
throws java.io.IOException
PCLFontReadergetCharacterOffsets in class PCLFontReaderjava.io.IOExceptionpublic OpenFont getFontFile()
getFontFile in class PCLFontReaderpublic FontFileReader getFontFileReader()
getFontFileReader in class PCLFontReaderprotected static int getCheckSum(byte[] data,
int start,
int size)
protected byte[] createHmtx(java.util.Map<java.lang.Character,java.lang.Integer> mappedGlyphs)
public java.util.Map<java.lang.Integer,java.lang.Integer> scanMtxCharacters()
throws java.io.IOException
scanMtxCharacters in class PCLFontReaderjava.io.IOExceptionCopyright 1999-2022 The Apache Software Foundation. All Rights Reserved.