Render antialiased text with Pango

56 Views Asked by At

I'm trying to modify text2image from the Tesseract OCR training code to output antialiased text.

I've tried tried the suggestions from both Andreas and Constantine in this SO Question: Change font rendering (non-antialiased) with pango but the output is always the same - lots of jagged edges:

enter image description here

Anyone know how to antialias the rendered text?

1

There are 1 best solutions below

0
user898678 On

text2image generates black&white (1 BitsPerPixel) images that why so do not see antialiased text.

Also, tesseract uses for training and OCR black&white images, so there is no sense to use/producing antialiased image with text2image...