Unable to use text image in Linux

I would like to use text image to find a text “Assignments” in an application in Linux. I have connected to Linux OS using VNC.

I do not know the actual font type and font size for the text, so i print screen in Mac and opened it with Paint in Windows (gray background). I found that the font type is “Microsoft Sans Serif” and the font size is 8.

After i try several times, I notice that the font size 8 cannot be used to detect any text in Linux. So, I set the preference as Picture 1.

But Eggplant seems cannot recognize whole word “Assignments”…

setoption currentTextPlatform, “LinuxRHE5”
Click (Text:“Assignments”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“Assignmen”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“ssignments”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“ssignment”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“ssignmen”, TextStyle:“ApplicationMenu”) – work
Click (Text:“Assignmen”, TextStyle:“ApplicationMenu”) – not work
Click (Text:“nments”, TextStyle:“ApplicationMenu”) – work

I also try to set the font size to 11.5, but it does not help me.
Can you please give some advice about it? Thanks.

Ok, sorry for the long delay. There are a few things to note.
The first is that (if I understand your images correctly) the A in your Assignments actually has an underline. So you probably do want to either omit the A from the search string OR you can specify the underline property. With Pango you can do that by tagging the A with A and in your script call this line:

set the defaultUseMarkup to true

Now that still doesn’t answer why it’s not matching the back half of your word but I do think you want to stick with the same used in the image you sent (8).