For the downloadable English dataset I do
cat tessdata/eng.* | egrep -o ".*ttf" | sort -u
and get a list of all fonts that were used in the training of the English language
Andale_Mono.ttf
Arial_Black.ttf
Arial_Bold.ttf
Arial.ttf
buttf
Comic_Sans_MS_Bold.ttf
Comic_Sans_MS.ttf
Courier_New_Bold.ttf
Courier_New.ttf
Georgia_Bold.ttf
Georgia.ttf
Gottf
Impact.ttf
Times_New_Roman_Bold.ttf
Times_New_Roman.ttf
Trebuchet_MS_Bold.ttf
Trebuchet_MS.ttf
ttf
Verdana_Bold.ttf
Verdana.ttf
Now I want to recognize a text where I already know the fonttype, so I want to limit the recognition on that. I tried:
api.SetVariable("classify_font_name", "Arial_Bold.ttf");
but I don't see a better result. Can someone tell me how to do this or if it is even possible?