Class PdfFonts
java.lang.Object
com.stimulsoft.report.export.tools.pdf.PdfFontInfo
com.stimulsoft.report.export.tools.pdf.PdfFonts
Copyright Stimulsoft
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAccessory class FontsInfoStoreclassAccessory class pfontInfo Copyright StimulsoftclassAccessory class RECT -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFirst mapped symbolArrayList<int[]> final String[]PDF font nameArrayList<int[]> 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, NeedSyntBold, NeedSyntItalic, NtmFlags, StemV, StrikeoutPosition, StrikeoutSize, SymsToPDF, tmASC, tmDESC, tmExternal, UnderscorePosition, UnderscoreSize, UnicodeMap, UnicodeMapBack, URX, URY, UseUnicode, Widths, XH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear pdfFontsstatic voidClear fonts cacheintGet current font numberbyte[]getFontDataBuf(StiFont font, Map<Font, byte[]> customFonts) Get font file byte array fron buffer (if exist)voidgetFontMetrics(StiFont font, PdfFontInfo currentFontInfo, int[] glyphMap) get font metricsintgetFontNumber(StiFont incomingFont) Returns number of font in table of fonts.intvoidinitFontsData(StiReport report) Init fonts datastatic booleanisFontStimulsoft(String name) static booleanisFontSymbolic(String name) booleanbooleanint[]makeGlyphBackMap(StiFont font) Make glyph back mapvoidsetCurrentFont(int value) Set current font number in table of fontsvoidsetFontList(ArrayList<PdfFonts.pfontInfo> fontList) voidsetForceUseUnicode(boolean forceUseUnicode) voidsetMaxSymbols(int maxSymbols) voidsetStandardPdfFonts(boolean standardPdfFonts) voidStore glyphs in mapvoidStore unicode symbols in map
-
Field Details
-
PDF_FONT_NAME
PDF font name -
FIRST_MAPPED_SYMBOL
public static final int FIRST_MAPPED_SYMBOLFirst mapped symbol- See Also:
-
fontList
-
fonts
-
UnicodeMapsList
-
GlyphMapsList
-
OpenTypeHelper
-
-
Constructor Details
-
PdfFonts
public PdfFonts()
-
-
Method Details
-
makeGlyphBackMap
Make glyph back map- Parameters:
font-- Returns:
- Back map
-
isFontStimulsoft
-
isFontSymbolic
-
getFontMetrics
get font metrics- Parameters:
font-currentFontInfo-glyphMap-
-
getCurrentFont
public int getCurrentFont()Get current font number- Returns:
- Current font number in table of fonts
-
setCurrentFont
public void setCurrentFont(int value) Set current font number in table of fonts- Parameters:
value-
-
initFontsData
Init fonts data -
getFontNumber
Returns number of font in table of fonts.- Parameters:
incomingFont-- Returns:
-
storeUnicodeSymbolsInMap
Store unicode symbols in map- Parameters:
sb-StringBuilder
-
storeGlyphsInMap
Store glyphs in map- Parameters:
sb-StringBuilder
-
clear
public void clear()Clear pdfFonts -
getFontDataBuf
public byte[] getFontDataBuf(StiFont font, Map<Font, byte[]> customFonts) throws IllegalArgumentException, SecurityException, IOException, IllegalAccessException, NoSuchFieldException, ClassNotFoundException, InvocationTargetException, NoSuchMethodExceptionGet font file byte array fron buffer (if exist)- Parameters:
font-StiFont- Returns:
- Font file byte array
- Throws:
IllegalArgumentExceptionSecurityExceptionIOExceptionIllegalAccessExceptionNoSuchFieldExceptionClassNotFoundExceptionNoSuchMethodExceptionInvocationTargetException
-
clearFontsCache
public static void clearFontsCache()Clear fonts cache -
isForceUseUnicode
public boolean isForceUseUnicode() -
setForceUseUnicode
public void setForceUseUnicode(boolean forceUseUnicode) -
isStandardPdfFonts
public boolean isStandardPdfFonts()- Returns:
- the standardPdfFonts
-
setStandardPdfFonts
public void setStandardPdfFonts(boolean standardPdfFonts) - Parameters:
standardPdfFonts- the standardPdfFonts to set
-
getMaxSymbols
public int getMaxSymbols()- Returns:
- the maxSymbols
-
setMaxSymbols
public void setMaxSymbols(int maxSymbols) - Parameters:
maxSymbols- the maxSymbols to set
-
getFontList
- Returns:
- the fontList
-
setFontList
- Parameters:
fontList- the fontList to set
-