Class ScriptRequirements

java.lang.Object
com.itextpdf.layout.renderer.typography.ScriptRequirements

public class ScriptRequirements extends Object
Class that contains requirements for correct shaping and layout of text for a script.

Intended for internal use

  • Method Details

    • getRequiredFeatures

      public Collection<String> getRequiredFeatures()
      Get features required for correct shaping and layout of text in the script.
      Returns:
      collection of required features
    • getAffectingFeatures

      public Collection<String> getAffectingFeatures()
      Get features that affect shaping and layout of text in the script, but are not required.
      Returns:
      collection of affecting features
    • getOtfScriptNames

      public Collection<String> getOtfScriptNames()
      Get names of OpenType scripts corresponding to the Utf script.
      Returns:
      collection of OpenType script names
    • isHardCodedHandling

      public boolean isHardCodedHandling()
      Check if the script requires hard coded handling in layout for actions not supported by OpenType features. For example custom line splitting.
      Returns:
      true if the script requires hard coded handling and false otherwise
    • isSupported

      public boolean isSupported()
      Check if the script is supported by pdfCalligraphy.
      Returns:
      true if the script is supported and false otherwise