-
- All Known Implementing Classes:
HOCONFontConfiguration
public interface FontConfigurationThe configuration to read a file to populate managers and options.- Since:
- April 25, 2019
-
-
Method Summary
Modifier and Type Method Description voidfetchAndApplyMergeRules(MergenceManager mergenceManager)Fetches the mergence rules' settings from the configuration and applies them to the givenMergenceManager.voidfetchAndApplySimilarities()Fetches the similarities' settings from the configuration and applies them to the givenSimilarityManager.OCROptionsfetchOptions()Generates and returns theOCROptionsfrom the file configuration.java.lang.StringgetFileName()Gets the file name theHOCONFontConfigurationwas generated from.java.lang.StringgetFriendlyName()The friendly version of the font name that should be displayed in messages/options.java.lang.StringgetSystemName()Gets the font name used by the OS to define it.java.util.Optional<java.lang.Class<MergeRule>>loadMergeClass(java.lang.String className)Loads a class that's an instance ofMergeRulefrom the given fully qualified name .
-
-
-
Method Detail
-
getFileName
java.lang.String getFileName()
Gets the file name theHOCONFontConfigurationwas 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
-
fetchOptions
OCROptions fetchOptions()
Generates and returns theOCROptionsfrom the file configuration.- Returns:
- The
OCROptionsfrom the settings
-
fetchAndApplySimilarities
void fetchAndApplySimilarities()
Fetches the similarities' settings from the configuration and applies them to the givenSimilarityManager. All similarities will be an instance ofBasicSimilarityRule.
-
fetchAndApplyMergeRules
void fetchAndApplyMergeRules(MergenceManager mergenceManager)
Fetches the mergence rules' settings from the configuration and applies them to the givenMergenceManager.- Parameters:
mergenceManager- TheMergenceManagerto apply all mergence rules to.
-
-