Skip to main content

[FontFormattingDetectionParams] INI file section

The [FontFormattingDetectionParams] INI 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
DetectBoldBooleantrue

When set to true, bold formatting is identified during synthesis.


DetectItalic​

KeyTypeDefault
DetectItalicBooleantrue

When set to true, italic formatting is identified during synthesis.


DetectSubscriptsSuperscripts​

KeyTypeDefault
DetectSubscriptsSuperscriptsBooleantrue

When set to true, subscript and superscript text is identified during synthesis.


DetectUnderlineStrikeout​

KeyTypeDefault
DetectUnderlineStrikeoutBooleantrue

When set to true, underlined and struck-through text is identified during synthesis.


DetectSmallCaps​

KeyTypeDefault
DetectSmallCapsBooleantrue

When set to true, small capitals are identified during synthesis.


DetectDropCaps​

KeyTypeDefault
DetectDropCapsBooleantrue

When set to true, enlarged initial letters (drop caps) are identified during synthesis.


Font attributes​

DetectFontFamily​

KeyTypeDefault
DetectFontFamilyBooleantrue

When set to true, the font family is identified during synthesis.


DetectFontSize​

KeyTypeDefault
DetectFontSizeBooleantrue

When set to true, the font size is identified during synthesis.


DetectSerifs​

KeyTypeDefault
DetectSerifsBooleantrue

When set to true, Pdftools OCR Service distinguishes between serif and sans-serif typefaces during synthesis and selects the matching font category for the output text. When set to false, this distinction is ignored and the best-fitting font is chosen regardless of whether the original text uses a serif or sans-serif typeface.


Scaling and spacing​

DetectScaling​

KeyTypeDefault
DetectScalingBooleantrue

When set to true, character scaling (horizontal stretch or compression) is identified during synthesis.


DetectSpacing​

KeyTypeDefault
DetectSpacingBooleanfalse

When set to true, character spacing is identified during synthesis.


MonospaceDetectionMode​

KeyTypeDefault
MonospaceDetectionModeMonospaceDetectionModeEnumMDM_Auto

Controls how monospace fonts are handled during synthesis.

MonospaceDetectionModeEnum​

  • MDM_Auto: Automatically determines whether the text uses a monospace font.
  • MDM_Ignore: Skips monospace detection entirely.
  • MDM_Monospace: Treats all output text as monospace.
  • MDM_NotMonospace: Treats all output text as proportional (non-monospace).