Class TypographyUtils
java.lang.Object
com.itextpdf.layout.renderer.TypographyUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static AbstractTypographyApplierprivate static final Stringprivate static final Stringprivate static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static voidapplyKerning(FontProgram fontProgram, GlyphLine text, SequenceId sequenceId, IMetaInfo metaInfo) (package private) static voidapplyOtfScript(FontProgram fontProgram, GlyphLine text, Character.UnicodeScript script, Object typographyConfig, SequenceId sequenceId, IMetaInfo metaInfo) (package private) static byte[]getBidiLevels(BaseDirection baseDirection, int[] unicodeIds, SequenceId sequenceId, IMetaInfo metaInfo) getPossibleBreaks(String str) static Collection<Character.UnicodeScript> static Collection<Character.UnicodeScript> getSupportedScripts(Object typographyConfig) private static Class<?> getTypographyClass(String typographyClassName) static booleanChecks if layout module can access pdfCalligraph(package private) static int[]reorderLine(List<LineRenderer.RendererGlyph> line, byte[] lineLevels, byte[] levels) static voidsetTypographyApplierInstance(AbstractTypographyApplier newInstance) SetAbstractTypographyApplierinstance to use.
-
Field Details
-
TYPOGRAPHY_PACKAGE
- See Also:
-
TYPOGRAPHY_APPLIER
- See Also:
-
TYPOGRAPHY_APPLIER_INITIALIZE
- See Also:
-
applierInstance
-
-
Constructor Details
-
TypographyUtils
private TypographyUtils()
-
-
Method Details
-
setTypographyApplierInstance
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
-
getSupportedScripts
-
loadShippedFonts
- Throws:
IOException
-
applyOtfScript
static void applyOtfScript(FontProgram fontProgram, GlyphLine text, Character.UnicodeScript script, 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
-
getPossibleBreaks
-
getTypographyClass
private static Class<?> getTypographyClass(String typographyClassName) throws ClassNotFoundException - Throws:
ClassNotFoundException
-