public class PCLTTFFontReader extends PCLFontReader
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
fontStream |
protected FontFileReader |
reader |
protected TTFFile |
ttfFont |
font, typeface| Constructor and Description |
|---|
PCLTTFFontReader(Typeface font) |
getLSB, getMSB, setFontprotected TTFFile ttfFont
protected InputStream fontStream
protected FontFileReader reader
public PCLTTFFontReader(Typeface font) throws IOException
IOExceptionprotected void loadFont()
throws IOException
IOExceptionprotected void readFontTables()
throws IOException
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 String getFontName()
getFontName in class PCLFontReaderpublic int getScaleFactor()
throws IOException
getScaleFactor in class PCLFontReaderIOExceptionpublic int getMasterUnderlinePosition()
throws IOException
getMasterUnderlinePosition in class PCLFontReaderIOExceptionpublic int getMasterUnderlineThickness()
throws IOException
getMasterUnderlineThickness in class PCLFontReaderIOExceptionpublic int getFontScalingTechnology()
getFontScalingTechnology in class PCLFontReaderpublic int getVariety()
getVariety in class PCLFontReaderpublic List<PCLFontSegment> getFontSegments(Map<Character,Integer> mappedGlyphs) throws IOException
PCLFontReadergetFontSegments in class PCLFontReaderIOExceptionpublic Map<Integer,int[]> getCharacterOffsets() throws IOException
PCLFontReadergetCharacterOffsets in class PCLFontReaderIOExceptionpublic OpenFont getFontFile()
getFontFile in class PCLFontReaderpublic FontFileReader getFontFileReader()
getFontFileReader in class PCLFontReaderprotected static int getCheckSum(byte[] data,
int start,
int size)
public Map<Integer,Integer> scanMtxCharacters() throws IOException
scanMtxCharacters in class PCLFontReaderIOExceptionCopyright © 2025 Apache Software Foundation. All rights reserved.