-
- All Known Implementing Classes:
HOCONFontConfiguration
public interface FontConfiguration
The configuration to read a file to populate managers and options.- Since:
- April 25, 2019
-
-
Method Summary
Modifier and Type Method Description void
fetchAndApplyMergeRules(MergenceManager mergenceManager)
Fetches the mergence rules' settings from the configuration and applies them to the givenMergenceManager
.void
fetchAndApplySimilarities()
Fetches the similarities' settings from the configuration and applies them to the givenSimilarityManager
.OCROptions
fetchOptions()
Generates and returns theOCROptions
from the file configuration.java.lang.String
getFileName()
Gets the file name theHOCONFontConfiguration
was generated from.java.lang.String
getFriendlyName()
The friendly version of the font name that should be displayed in messages/options.java.lang.String
getSystemName()
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 ofMergeRule
from the given fully qualified name .
-
-
-
Method Detail
-
getFileName
java.lang.String getFileName()
Gets the file name theHOCONFontConfiguration
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
-
fetchOptions
OCROptions fetchOptions()
Generates and returns theOCROptions
from the file configuration.- Returns:
- The
OCROptions
from 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
- TheMergenceManager
to apply all mergence rules to.
-
-