|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.stimulsoft.report.export.tools.pdf.PdfFontInfo
com.stimulsoft.report.export.tools.pdf.PdfFonts
public class PdfFonts
Copyright Stimulsoft
Nested Class Summary | |
---|---|
static class |
PdfFonts.FontsInfoStore
Accessory class FontsInfoStore |
class |
PdfFonts.pfontInfo
Accessory class pfontInfo Copyright Stimulsoft |
class |
PdfFonts.RECT
Accessory class RECT |
Field Summary | |
---|---|
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
|
Fields inherited from class com.stimulsoft.report.export.tools.pdf.PdfFontInfo |
---|
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 Summary | |
---|---|
PdfFonts()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public PdfFonts()
Method Detail |
---|
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
- StringBuilder
public void storeGlyphsInMap(java.lang.StringBuilder sb)
sb
- StringBuilder
public byte[] reduceFontSize(byte[] buff, java.lang.String fontName, boolean remakeGlyphTable) throws java.io.IOException
buff
- fontName
- remakeGlyphTable
-
java.io.IOException
public void clear()
public byte[] getFontDataBuf(StiFont font) throws java.lang.IllegalArgumentException, java.lang.SecurityException, java.io.IOException, java.lang.IllegalAccessException, java.lang.NoSuchFieldException
font
- StiFont
java.lang.IllegalArgumentException
java.lang.SecurityException
java.io.IOException
java.lang.IllegalAccessException
java.lang.NoSuchFieldException
public 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 set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |