[FontFormattingDetectionParams] INI file section
The FontFormattingDetectionParams
file section defines parameters for detecting font formatting and typographic attributes such as bold, italics, font family, size, and spacing during OCR text synthesis.
Text decoration
DetectBold
Key | Type | Default |
---|---|---|
PerformSynthesis | Boolean | true |
If this property is set to true
, boldface is detected during synthesis.
DetectItalic
Key | Type | Default |
---|---|---|
DetectItalic | Boolean | true |
If this property is set to true
, italic typeface is detected during synthesis.
DetectSubscriptsSuperscripts
Key | Type | Default |
---|---|---|
DetectSubscriptsSuperscripts | Boolean | true |
If this property is set to true
, subscript and superscript are detected during synthesis.
DetectUnderlineStrikeout
Key | Type | Default |
---|---|---|
DetectUnderlineStrikeout | Boolean | true |
If this property is set to true
, underline and strikeout are detected during synthesis.
DetectSmallCaps
Key | Type | Default |
---|---|---|
DetectSmallCaps | Boolean | true |
If this property is set to true
, small capital letters are detected during synthesis.
Font attributes
DetectFontFamily
Key | Type | Default |
---|---|---|
DetectFontFamily | Boolean | true |
If this property is set to true
, the font name is detected during synthesis.
DetectFontSize
Key | Type | Default |
---|---|---|
DetectFontSize | Boolean | true |
If this property is set to true
, font size is detected during synthesis.
DetectSerifs
Key | Type | Default |
---|---|---|
DetectSerifs | Boolean | true |
If this property is set to true
, serif is detected during synthesis. For example, if serif has been detected, serif typeface is
selected to represent the recognized text. If this property is set to false
, serif is ignored. This means that the
most suitable font (from both serif and sans serif typefaces) is selected to represent the recognized text, no matter
whether the text is serif or sans serif.
Scaling and spacing
DetectScaling
Key | Type | Default |
---|---|---|
DetectScaling | Boolean | true |
If this property is set to true
, scaling is detected during synthesis.
DetectSpacing
Key | Type | Default |
---|---|---|
DetectSpacing | Boolean | true |
If this property is set to true
, spacing is detected during synthesis
MonospaceDetectionMode
Key | Type | Default |
---|---|---|
MonospaceDetectionMode | MonospaceDetectionModeEnum | MDM_Auto |
If this property is set to true
, spacing is detected during synthesis
MonospaceDetectionModeEnum
PPM_Auto
: Detect whether the font is monospace automatically.MDM_Ignore
: Do not detect whether the font is monospace.MDM_Monospace
: Set the font to monospace.MDM_NotMonospace
: Set the font to non-monospace.