Class TypographyUtils


  • public final class TypographyUtils
    extends java.lang.Object
    • Constructor Detail

      • TypographyUtils

        private TypographyUtils()
    • Method Detail

      • isPdfCalligraphAvailable

        public static boolean isPdfCalligraphAvailable()
        Checks if layout module can access pdfCalligraph
        Returns:
        true if layout can access pdfCalligraph and false otherwise
      • 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)
      • 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