public class PdfType0Font extends PdfFont
| Modifier and Type | Field and Description |
|---|---|
protected static int |
CID_FONT_TYPE_0 |
protected static int |
CID_FONT_TYPE_2 |
protected int |
cidFontType |
protected CMapEncoding |
cmapEncoding |
protected Map<Integer,int[]> |
longTag |
protected char[] |
specificUnicodeDifferences |
protected boolean |
vertical |
embedded, emptyBytes, fontProgram, newFont, notdefGlyphs, subset, subsetRanges| Modifier and Type | Method and Description |
|---|---|
protected void |
addRangeUni(TrueTypeFont ttf,
Map<Integer,int[]> longTag,
boolean includeMetrics) |
byte[] |
convertToBytes(Glyph glyph) |
byte[] |
convertToBytes(GlyphLine glyphLine) |
byte[] |
convertToBytes(String text)
Converts the text into bytes to be placed in the document.
|
GlyphLine |
createGlyphLine(String content) |
String |
decode(PdfString content) |
void |
flush() |
protected PdfDictionary |
getCidFontType2(TrueTypeFont ttf,
PdfDictionary fontDescriptor,
String fontName,
int[][] metrics)
Generates the CIDFontTyte2 dictionary.
|
CMapEncoding |
getCmap() |
float |
getContentWidth(PdfString content) |
protected PdfDictionary |
getFontDescriptor(String fontName) |
Glyph |
getGlyph(int unicode) |
PdfStream |
getToUnicode(Object[] metrics)
Creates a ToUnicode CMap to allow copy and paste from Acrobat.
|
static String |
getUniMapFromOrdering(String ordering) |
void |
writeText(GlyphLine text,
int from,
int to,
PdfOutputStream stream) |
void |
writeText(String text,
PdfOutputStream stream) |
addSubsetRange, checkFontDictionary, checkTrueTypeFontDictionary, checkTrueTypeFontDictionary, compactRanges, containsGlyph, createSubsetPrefix, getAscent, getAscent, getDescent, getDescent, getFontMatrix, getFontProgram, getPdfFontStream, getWidth, getWidth, getWidth, getWidth, isEmbedded, isSubset, isWrappedObjectMustBeIndirect, setSubset, splitString, writeTextensureObjectIsAddedToDocument, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidReleaseprotected static final int CID_FONT_TYPE_0
protected static final int CID_FONT_TYPE_2
protected boolean vertical
protected CMapEncoding cmapEncoding
protected int cidFontType
protected char[] specificUnicodeDifferences
public byte[] convertToBytes(String text)
PdfFontconvertToBytes in class PdfFonttext - the text to convertpublic byte[] convertToBytes(GlyphLine glyphLine)
convertToBytes in class PdfFontpublic byte[] convertToBytes(Glyph glyph)
convertToBytes in class PdfFontpublic void writeText(GlyphLine text, int from, int to, PdfOutputStream stream)
public void writeText(String text, PdfOutputStream stream)
public GlyphLine createGlyphLine(String content)
createGlyphLine in class PdfFontpublic float getContentWidth(PdfString content)
getContentWidth in class PdfFontprotected PdfDictionary getFontDescriptor(String fontName)
getFontDescriptor in class PdfFontpublic CMapEncoding getCmap()
public void flush()
flush in class PdfObjectWrapper<PdfDictionary>protected PdfDictionary getCidFontType2(TrueTypeFont ttf, PdfDictionary fontDescriptor, String fontName, int[][] metrics)
fontDescriptor - the indirect reference to the font descriptorfontName - a name of the fontmetrics - the horizontal width metricspublic PdfStream getToUnicode(Object[] metrics)
metrics - metrics[0] contains the glyph index and metrics[2]
contains the Unicode codenullprotected void addRangeUni(TrueTypeFont ttf, Map<Integer,int[]> longTag, boolean includeMetrics)
Copyright © 1998–2016 iText Group NV. All rights reserved.