Skip to main content
Version: Version 1.0.0

[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

KeyTypeDefault
PerformSynthesisBooleantrue

If this property is set to true, boldface is detected during synthesis.


DetectItalic

KeyTypeDefault
DetectItalicBooleantrue

If this property is set to true, italic typeface is detected during synthesis.


DetectSubscriptsSuperscripts

KeyTypeDefault
DetectSubscriptsSuperscriptsBooleantrue

If this property is set to true, subscript and superscript are detected during synthesis.


DetectUnderlineStrikeout

KeyTypeDefault
DetectUnderlineStrikeoutBooleantrue

If this property is set to true, underline and strikeout are detected during synthesis.


DetectSmallCaps

KeyTypeDefault
DetectSmallCapsBooleantrue

If this property is set to true, small capital letters are detected during synthesis.


Font attributes

DetectFontFamily

KeyTypeDefault
DetectFontFamilyBooleantrue

If this property is set to true, the font name is detected during synthesis.


DetectFontSize

KeyTypeDefault
DetectFontSizeBooleantrue

If this property is set to true, font size is detected during synthesis.


DetectSerifs

KeyTypeDefault
DetectSerifsBooleantrue

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

KeyTypeDefault
DetectScalingBooleantrue

If this property is set to true, scaling is detected during synthesis.


DetectSpacing

KeyTypeDefault
DetectSpacingBooleantrue

If this property is set to true, spacing is detected during synthesis


MonospaceDetectionMode

KeyTypeDefault
MonospaceDetectionModeMonospaceDetectionModeEnumMDM_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.