Module NewOCR

Interface FontConfiguration

  • All Known Implementing Classes:
    HOCONFontConfiguration

    public interface FontConfiguration
    The configuration to read a file to populate managers and options.
    Since:
    April 25, 2019
    • Method Detail

      • getFileName

        java.lang.String getFileName()
        Gets the file name the HOCONFontConfiguration was generated from.
        Returns:
        The file name
      • getFriendlyName

        java.lang.String getFriendlyName()
        The friendly version of the font name that should be displayed in messages/options.
        Returns:
        The friendly font name
      • getSystemName

        java.lang.String getSystemName()
        Gets the font name used by the OS to define it. This shouldn't really be displayed to the user, unless the specific application requires it.
        Returns:
        The font name by the OS
      • fetchAndApplySimilarities

        void fetchAndApplySimilarities()
        Fetches the similarities' settings from the configuration and applies them to the given SimilarityManager. All similarities will be an instance of BasicSimilarityRule.
      • fetchAndApplyMergeRules

        void fetchAndApplyMergeRules​(MergenceManager mergenceManager)
        Fetches the mergence rules' settings from the configuration and applies them to the given MergenceManager.
        Parameters:
        mergenceManager - The MergenceManager to apply all mergence rules to.
      • loadMergeClass

        java.util.Optional<java.lang.Class<MergeRule>> loadMergeClass​(java.lang.String className)
        Loads a class that's an instance of MergeRule from the given fully qualified name .
        Parameters:
        className - The fully qualified name of the class to load
        Returns:
        The class, if found