public class T1Glyphs extends PdfJavaGlyphs
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 |
|---|
T1Glyphs(boolean isCID) |
T1Glyphs(boolean isCID,
boolean is1C)
used by PS2OTF conversion
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,byte[]> |
getCharStrings()
Return charstrings and subrs - used by PS to OTF converter
|
PdfGlyph |
getEmbeddedGlyph(GlyphFactory factory,
String glyph,
float[][] Trm,
int rawInt,
String displayValue,
float currentWidth,
String key)
used by non type3 font
|
int |
getGlyphNumber(String glyphName)
Return the glyph number of the given glyph name
|
String |
getIndexForCharString(int index)
index for each char
|
boolean |
is1C() |
static String[] |
readFontNames(FontData fontData)
return name of font
NAME will be LOWERCASE to avoid issues of capitalisation
when used for lookup - if no name, will default to null
|
void |
setCharString(String glyph,
byte[] stream,
int glyphNo)
add a charString value
|
void |
setFDSelect(int[] fdSelect)
Pass in array saying which Font DICT to use for each glyph.
|
void |
setIndexForCharString(int index,
String charName)
index for each char
|
void |
setis1C(boolean is1C) |
void |
setRenderer(DynamicVectorRenderer current) |
void |
setWidthValues(int[] defaultWidthX,
int[] nominalWidthX)
Used by HTML code
|
flush, getBaseFontName, getCachedShape, getCachedTransform, getCharGlyph, getCharGlyphs, getCMAPValue, getConvertedGlyph, getDisplayValue, getDisplayValues, getEmbeddedCachedShape, getEmbeddedEnc, getEmbeddedEncs, getFontBoundingBox, getGlyph, getGlyphCount, getPostName, getStandardGlyph, getTable, getTTWidth, getType, getUnscaledFont, hasGIDtoCID, init, isCorrupted, isIdentity, isRemappedCFFFont, isValidGIDtoCID, readEmbeddedFont, setBaseFontName, setCachedShape, setCharGlyphs, setCorrupted, setDisplayValues, setEmbeddedCachedShape, setEmbeddedEncs, setEncodingToUse, setFont, setFontEmbedded, setGIDtoCID, setGlobalBias, setGlyphCount, setHasWidths, setIsIdentity, setIsSubsetted, setLocalBias, setObjID, setRemappedCFFFont, setT3Glyph, setValuesForGlyphpublic T1Glyphs(boolean isCID)
public T1Glyphs(boolean isCID,
boolean is1C)
public static String[] readFontNames(FontData fontData)
Mode is PdfDecoder.SUBSTITUTE_* CONSTANT. RuntimeException will be thrown on invalid value
fontData - public PdfGlyph getEmbeddedGlyph(GlyphFactory factory, String glyph, float[][] Trm, int rawInt, String displayValue, float currentWidth, String key)
getEmbeddedGlyph in interface PdfGlyphsgetEmbeddedGlyph in class PdfJavaGlyphspublic void setCharString(String glyph, byte[] stream, int glyphNo)
setCharString in class PdfJavaGlyphspublic void setIndexForCharString(int index,
String charName)
setIndexForCharString in class PdfJavaGlyphspublic String getIndexForCharString(int index)
getIndexForCharString in class PdfJavaGlyphspublic boolean is1C()
is1C in class PdfJavaGlyphspublic void setWidthValues(int[] defaultWidthX,
int[] nominalWidthX)
defaultWidthX - nominalWidthX - public void setis1C(boolean is1C)
setis1C in class PdfJavaGlyphspublic void setRenderer(DynamicVectorRenderer current)
setRenderer in class PdfJavaGlyphspublic void setFDSelect(int[] fdSelect)
fdSelect - public Map<String,byte[]> getCharStrings()
getCharStrings in class PdfJavaGlyphspublic int getGlyphNumber(String glyphName)
glyphName - The name of the glyph to findCopyright © 2017. All rights reserved.