codebe / indic-text-renderer

Automatically exported from code.google.com/p/indic-text-renderer
Other
0 stars 0 forks source link

Rendered Kannada text is very fuzzy - as if it is very aliased #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. folowed HowToBuild instructions
2. Built FT, HarfBuzz and finally ndk-build
3. Built and run indic-text-renderer Android project on Korbonn ST3 Blade tablet

What is the expected output? What do you see instead?
Expected to see kannada glyphs rendered

What version of the product are you using? On what operating system?
Android 4.0.3 on Korbonn ST3 Blade tablet

Please provide any additional information below.
Since this project does not have HarfBuzz code in it, I downloaded the same 
from the following sites and tried to build.
a.. Downloaded harfbuzz from 
https://github.com/CyanogenMod/android_external_harfbuzz
But this needed <utils/Log.h> which could not be found anywhere
b. Downloaded harfbuzz from http://cgit.freedesktop.org/harfbuzz/
But this needed external/common/icu4c/unicode/uscript.h This seemed to need the 
icu4c code to be downloaded which took forever. That module may have other 
dependencies. so dropped it.
3. Downloaded harfbuzz from 
https://github.com/sridharsundaram/complexscriptlayout
While harfbuzz itself could be build, this site does not have any test code!! 
So transplanted the harfbuzz code from here to indic-texzt-renderer project and 
got fuzzy rendering of the text.

Original issue reported on code.google.com by rgubb...@gmail.com on 19 Jan 2013 at 6:49

GoogleCodeExporter commented 8 years ago
This was a self inflicted issue. In order to compare with own renderer a 
transparency factor was introduced which eventually turned out to be this issue.

Solution: On black background change the following line EditIndicText.java
int graylevel = 255 - glyphBitmap[i][j];

to

int graylevel = glyphBitmap[i][j];

Issue is resolved

Original comment by rgubb...@gmail.com on 21 Jan 2013 at 10:39