OCR code is no trivial task. Do you have a planned target for this? If so it is easier, but not easy. If you want it to work everywhere, good luck. OCR code that does not work everywhere goes for big buck and takes many months with a team of many people.

If you are aiming at a particular font you can zoom in and inspect it. Fonts are made up of multiple colors now, even if you choose 'black'. One way to do it would be to change the contents of your window to black and white. You will have to experiment to see what works best, usually low values can be black and higher values can be white, but from my limited experience it works best with different cutoff values for red, blue and green. When I get home I will see if I still have what I started with, although it is far from complete.