public class PdfFonts extends PdfFontInfo
| Modifier and Type | Class and Description |
|---|---|
static class |
PdfFonts.FontsInfoStore
Accessory class FontsInfoStore
|
class |
PdfFonts.pfontInfo
Accessory class pfontInfo
Copyright Stimulsoft
|
class |
PdfFonts.RECT
Accessory class RECT
|
| Modifier and Type | Field and Description |
|---|---|
static int |
FIRST_MAPPED_SYMBOL
First mapped symbol
|
PdfFontInfo[] |
fonts |
java.util.ArrayList<int[]> |
GlyphMapsList |
java.lang.String[] |
PDF_FONT_NAME
PDF font name
|
java.util.ArrayList<int[]> |
UnicodeMapsList |
ASC, CH, CharPdfNames, ChildFontsMap, DESC, GlyphBackList, GlyphList, GlyphRtfList, GlyphWidths, ItalicAngle, LineGap, LLX, LLY, MacAscend, MacDescend, MacLineGap, MappedSymbolsCount, NeedSynt, NtmFlags, StemV, StrikeoutPosition, StrikeoutSize, SymsToPDF, tmASC, tmDESC, tmExternal, UnderscorePosition, UnderscoreSize, UnicodeMap, UnicodeMapBack, URX, URY, Widths, XH| Constructor and Description |
|---|
PdfFonts() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear pdfFonts
|
static void |
clearFontsCache()
Clear fonts cache
|
int |
getCurrentFont()
Get current font number
|
byte[] |
getFontDataBuf(StiFont font)
Get font file byte array fron buffer (if exist)
|
java.util.ArrayList<PdfFonts.pfontInfo> |
getFontList() |
void |
getFontMetrics(StiFont font,
PdfFontInfo currentFontInfo,
int[] glyphMap)
get font metrics
|
int |
getFontNumber(StiFont incomingFont)
Returns number of font in table of fonts.
|
int |
getMaxSymbols() |
void |
initFontsData()
Init fonts data
|
boolean |
isStandardPdfFonts() |
boolean |
isUseUnicode() |
int[] |
makeGlyphBackMap(StiFont font)
Make glyph back map
|
byte[] |
reduceFontSize(byte[] buff,
java.lang.String fontName,
boolean remakeGlyphTable)
Reduce font size
|
void |
setCurrentFont(int value)
Set current font number in table of fonts
|
void |
setFontList(java.util.ArrayList<PdfFonts.pfontInfo> fontList) |
void |
setMaxSymbols(int maxSymbols) |
void |
setStandardPdfFonts(boolean standardPdfFonts) |
void |
setUseUnicode(boolean useUnicode) |
void |
storeGlyphsInMap(java.lang.StringBuilder sb)
Store glyphs in map
|
void |
storeUnicodeSymbolsInMap(java.lang.StringBuilder sb)
Store unicode symbols in map
|
public final java.lang.String[] PDF_FONT_NAME
public static final int FIRST_MAPPED_SYMBOL
public PdfFontInfo[] fonts
public java.util.ArrayList<int[]> UnicodeMapsList
public java.util.ArrayList<int[]> GlyphMapsList
public int[] makeGlyphBackMap(StiFont font)
font - public void getFontMetrics(StiFont font, PdfFontInfo currentFontInfo, int[] glyphMap)
font - currentFontInfo - glyphMap - public int getCurrentFont()
public void setCurrentFont(int value)
value - public void initFontsData()
public int getFontNumber(StiFont incomingFont)
incomingFont - public void storeUnicodeSymbolsInMap(java.lang.StringBuilder sb)
sb - StringBuilderpublic void storeGlyphsInMap(java.lang.StringBuilder sb)
sb - StringBuilderpublic byte[] reduceFontSize(byte[] buff,
java.lang.String fontName,
boolean remakeGlyphTable)
throws java.io.IOException
buff - fontName - remakeGlyphTable - java.io.IOExceptionpublic void clear()
public byte[] getFontDataBuf(StiFont font) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.io.IOException, java.lang.IllegalAccessException, java.lang.NoSuchFieldException
font - StiFontjava.lang.IllegalArgumentExceptionjava.lang.SecurityExceptionjava.io.IOExceptionjava.lang.IllegalAccessExceptionjava.lang.NoSuchFieldExceptionpublic static void clearFontsCache()
public boolean isUseUnicode()
public void setUseUnicode(boolean useUnicode)
useUnicode - the useUnicode to setpublic boolean isStandardPdfFonts()
public void setStandardPdfFonts(boolean standardPdfFonts)
standardPdfFonts - the standardPdfFonts to setpublic int getMaxSymbols()
public void setMaxSymbols(int maxSymbols)
maxSymbols - the maxSymbols to setpublic java.util.ArrayList<PdfFonts.pfontInfo> getFontList()
public void setFontList(java.util.ArrayList<PdfFonts.pfontInfo> fontList)
fontList - the fontList to setCopyright © 2019 Stimulsoft. All Rights Reserved.