Package com.itextpdf.layout.renderer
Class TypographyUtils
java.lang.Object
com.itextpdf.layout.renderer.TypographyUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static AbstractTypographyApplier
private static final String
private static final String
private static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static void
applyKerning
(FontProgram fontProgram, GlyphLine text, SequenceId sequenceId, IMetaInfo metaInfo) (package private) static void
applyOtfScript
(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 boolean
Checks if layout module can access pdfCalligraph(package private) static int[]
reorderLine
(List<LineRenderer.RendererGlyph> line, byte[] lineLevels, byte[] levels) static void
setTypographyApplierInstance
(AbstractTypographyApplier newInstance) SetAbstractTypographyApplier
instance 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
SetAbstractTypographyApplier
instance to use.- Parameters:
newInstance
- the instance to set
-
isPdfCalligraphAvailable
public static boolean isPdfCalligraphAvailable()Checks if layout module can access pdfCalligraph- Returns:
true
if layout can access pdfCalligraph andfalse
otherwise
-
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
-