Package com.itextpdf.layout.renderer
Class TypographyUtils
- java.lang.Object
-
- com.itextpdf.layout.renderer.TypographyUtils
-
public final class TypographyUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static AbstractTypographyApplierapplierInstanceprivate static java.lang.StringTYPOGRAPHY_APPLIERprivate static java.lang.StringTYPOGRAPHY_APPLIER_INITIALIZEprivate static java.lang.StringTYPOGRAPHY_PACKAGE
-
Constructor Summary
Constructors Modifier Constructor Description privateTypographyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description (package private) static voidapplyKerning(FontProgram fontProgram, GlyphLine text, SequenceId sequenceId, IMetaInfo metaInfo)(package private) static voidapplyOtfScript(FontProgram fontProgram, GlyphLine text, java.lang.Character.UnicodeScript script, java.lang.Object typographyConfig, SequenceId sequenceId, IMetaInfo metaInfo)(package private) static byte[]getBidiLevels(BaseDirection baseDirection, int[] unicodeIds, SequenceId sequenceId, IMetaInfo metaInfo)(package private) static java.util.List<java.lang.Integer>getPossibleBreaks(java.lang.String str)static java.util.Collection<java.lang.Character.UnicodeScript>getSupportedScripts()static java.util.Collection<java.lang.Character.UnicodeScript>getSupportedScripts(java.lang.Object typographyConfig)private static java.lang.Class<?>getTypographyClass(java.lang.String typographyClassName)static booleanisPdfCalligraphAvailable()Checks if layout module can access pdfCalligraphstatic java.util.Map<java.lang.String,byte[]>loadShippedFonts()(package private) static int[]reorderLine(java.util.List<LineRenderer.RendererGlyph> line, byte[] lineLevels, byte[] levels)static voidsetTypographyApplierInstance(AbstractTypographyApplier newInstance)SetAbstractTypographyApplierinstance to use.
-
-
-
Field Detail
-
TYPOGRAPHY_PACKAGE
private static final java.lang.String TYPOGRAPHY_PACKAGE
- See Also:
- Constant Field Values
-
TYPOGRAPHY_APPLIER
private static final java.lang.String TYPOGRAPHY_APPLIER
- See Also:
- Constant Field Values
-
TYPOGRAPHY_APPLIER_INITIALIZE
private static final java.lang.String TYPOGRAPHY_APPLIER_INITIALIZE
- See Also:
- Constant Field Values
-
applierInstance
private static AbstractTypographyApplier applierInstance
-
-
Method Detail
-
setTypographyApplierInstance
public static void setTypographyApplierInstance(AbstractTypographyApplier newInstance)
SetAbstractTypographyApplierinstance to use.- Parameters:
newInstance- the instance to set
-
isPdfCalligraphAvailable
public static boolean isPdfCalligraphAvailable()
Checks if layout module can access pdfCalligraph- Returns:
trueif layout can access pdfCalligraph andfalseotherwise
-
getSupportedScripts
public static java.util.Collection<java.lang.Character.UnicodeScript> getSupportedScripts()
-
getSupportedScripts
public static java.util.Collection<java.lang.Character.UnicodeScript> getSupportedScripts(java.lang.Object typographyConfig)
-
loadShippedFonts
public static java.util.Map<java.lang.String,byte[]> loadShippedFonts() throws java.io.IOException- Throws:
java.io.IOException
-
applyOtfScript
static void applyOtfScript(FontProgram fontProgram, GlyphLine text, java.lang.Character.UnicodeScript script, java.lang.Object typographyConfig, SequenceId sequenceId, IMetaInfo metaInfo)
-
applyKerning
static void applyKerning(FontProgram fontProgram, GlyphLine text, SequenceId sequenceId, IMetaInfo metaInfo)
-
getBidiLevels
static byte[] getBidiLevels(BaseDirection baseDirection, int[] unicodeIds, SequenceId sequenceId, IMetaInfo metaInfo)
-
reorderLine
static int[] reorderLine(java.util.List<LineRenderer.RendererGlyph> line, byte[] lineLevels, byte[] levels)
-
getPossibleBreaks
static java.util.List<java.lang.Integer> getPossibleBreaks(java.lang.String str)
-
getTypographyClass
private static java.lang.Class<?> getTypographyClass(java.lang.String typographyClassName) throws java.lang.ClassNotFoundException- Throws:
java.lang.ClassNotFoundException
-
-