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, setFont
protected TTFFile ttfFont
protected InputStream fontStream
protected FontFileReader reader
public PCLTTFFontReader(Typeface font) throws IOException
IOException
protected void loadFont() throws IOException
IOException
protected void readFontTables() throws IOException
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 String getFontName()
getFontName
in class PCLFontReader
public int getScaleFactor() throws IOException
getScaleFactor
in class PCLFontReader
IOException
public int getMasterUnderlinePosition() throws IOException
getMasterUnderlinePosition
in class PCLFontReader
IOException
public int getMasterUnderlineThickness() throws IOException
getMasterUnderlineThickness
in class PCLFontReader
IOException
public int getFontScalingTechnology()
getFontScalingTechnology
in class PCLFontReader
public int getVariety()
getVariety
in class PCLFontReader
public List<PCLFontSegment> getFontSegments(Map<Character,Integer> mappedGlyphs) throws IOException
PCLFontReader
getFontSegments
in class PCLFontReader
IOException
public Map<Integer,int[]> getCharacterOffsets() throws IOException
PCLFontReader
getCharacterOffsets
in class PCLFontReader
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)
public Map<Integer,Integer> scanMtxCharacters() throws IOException
scanMtxCharacters
in class PCLFontReader
IOException
Copyright © 2025 Apache Software Foundation. All rights reserved.