public class TTGlyphs extends PdfJavaGlyphs
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
CIDToGIDMap |
baseFontName, cachedEmbeddedShapes, CMAP_Translate, defaultFont, font_family_name, fontName, frc, globalBias, glyphCount, hasGIDtoCID, isArialInstalledLocally, isCIDFont, isFontInstalled, isSubsetted, lastTrm, localBias, logicalfontName, objID, remappedCFFFont, style| Constructor and Description |
|---|
TTGlyphs() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addStringValues(FontData fontData,
Map<String,String> fontDetails)
Add font details to Map so we can access later
|
Map<Integer,Integer> |
getCharStrings()
Return charstrings and subrs - used by PS to OTF converter
|
int |
getConvertedGlyph(int idx)
should never be called - just to allow TTGlyphs to extend
|
PdfGlyph |
getEmbeddedGlyph(GlyphFactory factory,
String glyph,
float[][] Trm,
int rawInt,
String displayValue,
float currentWidth,
String key)
used by non type3 font
|
float[] |
getFontBoundingBox() |
Table |
getTable(int type) |
float |
getTTWidth(String glyph,
int rawInt,
String displayValue,
boolean TTstreamisCID) |
int |
getType() |
boolean |
isCorrupted() |
boolean |
isValidGIDtoCID(int value) |
int |
readEmbeddedFont(boolean TTstreamisCID,
byte[] fontDataAsArray,
FontData fontData) |
static String[] |
readFontNames(FontData fontData,
int mode)
return name of font or all fonts if TTC
NAME will be LOWERCASE to avoid issues of capitalisation
when used for lookup - if no name, will default to null
|
void |
setCorrupted(boolean corrupt) |
void |
setEncodingToUse(boolean hasEncoding,
int fontEncoding,
boolean isCIDFont) |
void |
setGIDtoCID(int[] cidToGIDMap) |
flush, getBaseFontName, getCachedShape, getCachedTransform, getCharGlyph, getCharGlyphs, getCMAPValue, getDisplayValue, getDisplayValues, getEmbeddedCachedShape, getEmbeddedEnc, getEmbeddedEncs, getGlyph, getGlyphCount, getIndexForCharString, getPostName, getStandardGlyph, getUnscaledFont, hasGIDtoCID, init, is1C, isIdentity, isRemappedCFFFont, setBaseFontName, setCachedShape, setCharGlyphs, setCharString, setDisplayValues, setEmbeddedCachedShape, setEmbeddedEncs, setFont, setFontEmbedded, setGlobalBias, setGlyphCount, setHasWidths, setIndexForCharString, setis1C, setIsIdentity, setIsSubsetted, setLocalBias, setObjID, setRemappedCFFFont, setRenderer, setT3Glyph, setValuesForGlyphpublic PdfGlyph getEmbeddedGlyph(GlyphFactory factory, String glyph, float[][] Trm, int rawInt, String displayValue, float currentWidth, String key)
getEmbeddedGlyph in interface PdfGlyphsgetEmbeddedGlyph in class PdfJavaGlyphspublic void setEncodingToUse(boolean hasEncoding,
int fontEncoding,
boolean isCIDFont)
setEncodingToUse in class PdfJavaGlyphspublic int getConvertedGlyph(int idx)
PdfJavaGlyphsgetConvertedGlyph in class PdfJavaGlyphspublic Map<Integer,Integer> getCharStrings()
getCharStrings in class PdfJavaGlyphspublic float getTTWidth(String glyph, int rawInt, String displayValue, boolean TTstreamisCID)
getTTWidth in class PdfJavaGlyphspublic boolean isValidGIDtoCID(int value)
isValidGIDtoCID in class PdfJavaGlyphspublic void setGIDtoCID(int[] cidToGIDMap)
setGIDtoCID in class PdfJavaGlyphspublic static String[] readFontNames(FontData fontData, int mode)
Mode is PdfDecoder.SUBSTITUTE_* CONSTANT. RuntimeException will be thrown on invalid value
public static void addStringValues(FontData fontData, Map<String,String> fontDetails)
public int readEmbeddedFont(boolean TTstreamisCID,
byte[] fontDataAsArray,
FontData fontData)
readEmbeddedFont in class PdfJavaGlyphspublic float[] getFontBoundingBox()
getFontBoundingBox in class PdfJavaGlyphspublic int getType()
getType in class PdfJavaGlyphspublic boolean isCorrupted()
isCorrupted in class PdfJavaGlyphspublic void setCorrupted(boolean corrupt)
setCorrupted in class PdfJavaGlyphspublic Table getTable(int type)
getTable in class PdfJavaGlyphsCopyright © 2017. All rights reserved.