Module NewOCR

Interface FontConfiguration

  • All Known Implementing Classes:

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

      • getFileName

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

        java.lang.String getFriendlyName()
        The friendly version of the font name that should be displayed in messages/options.
        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.
        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.
        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 .
        className - The fully qualified name of the class to load
        The class, if found