Export to GitHub

indic-text-renderer - issue #8

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


Posted on Jan 19, 2013 by Helpful Kangaroo

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.

Comment #1

Posted on Jan 21, 2013 by Helpful Kangaroo

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

Status: New

Labels:
Type-Defect Priority-Medium