Community

Font recognition Answered

Hi, I'm new here, helping with an installation run by someone else.

I believe in some cases FineReader XML output identifies the font used.  I know it's good at identifying Italics, OK with identifying serifs, but I mean an idea (however rough) of the font used in the original text image.  In one output format there's an attribute "ff" that I think can do this, but nearly always contains "Default Metrics Font".

Is there a way to get even broad font family identification?  How do we enable it or get it to work best?

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    AdrianHB

    I've since found this question, though for the cloud version

    https://forum.ocrsdk.com/thread/4675-font-detection-in-abbyy-finereader-engine-/

    But I still would like to know why every font I scan gives ff="Default Metrics Font"! 

    0
  • Avatar
    Helen Osetrova

    Hello, Adrian!

    To detect the font names, please tune the XMLExportParams object before export:

    FREngine.XMLExportParams XMLParams = engineLoader.Engine.CreateXMLExportParams();
    XMLParams.WriteCharFormatting = true;
    XMLParams.WriteCharAttributes = FREngine.XMLCharAttributesEnum.XCA_Extended;
    XMLParams.WriteParagraphStyles = true;

     

    In case if the source document fonts are lost in your output file, please try also to use fonts embedding: 

    IPDFExportFeatures::FontEmbeddingMode = FEM_Embed.

     

    If our recommendations do not help you, please, send your file to sdk_support@abbyy.com for additional testing.

    0
  • Avatar
    AdrianHB

    Many thanks Helen

    Sounds good.  I won't be able to try this out for a while, but will report back when I have results.

    0

Please sign in to leave a comment.