How can i get actual font name?

60 views
Skip to first unread message

Gunasekaran Velu

unread,
Apr 17, 2015, 6:19:08 AM4/17/15
to tesser...@googlegroups.com
Hi

I am working windows Tesseract 

I am using following code to get the font name 

const char* m_WordType = ri->WordFontAttributes(&is_bold,&is_italic,&is_underlined,&is_monospace,&is_serif,&is_smallcaps,&pointsize,&font_id);

the output  i got from above line is "Verdana_Bold"

But actual font name is "Verdanab" in windows. How can i map the fonts from "Verdana_Bold" to "Verdanab".

Similar to "Trebuchet_MS_Bold" -> "trebucbd" and so on.

Any generic method to resolve the issue.

Kindly do the needful.


Regards
Guna
Reply all
Reply to author
Forward
0 new messages