Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gujarati Font Rendering

I am having sqlite database containing gujarati words..

The sql query for the database is...

BEGIN TRANSACTION;
CREATE TABLE eng_guj (_id INTEGER PRIMARY KEY, eng_word , guj_word );
INSERT INTO eng_guj VALUES(1,'aardvark','ઊધઇ ખાનારું આફ્રિકાનું એક નિશાચર સસ્તન પ્રાણી.');
COMMIT;

I want to display the text in textview.. but its not rendering properly.. meant Its displaying the word in gujarati like "આફ્રિકા" will be displayed as "આફરિકા".

I already have used Typeface and different ttf fonts.

enter image description here

like image 495
Vishal Khakhkhar Avatar asked Sep 11 '11 04:09

Vishal Khakhkhar


2 Answers

This implies that your UI framework is handling "Complex text layout" properly or it is not configured properly to handle right.

Devanagari scripts, require different contextual shapes and ordering in text, which require complex layout support with Unicode characters. see this

A forum here mentions that Android still doesn't have proper support to do this. But my information on this is limited.

Dipan.

like image 130
Dipan Mehta Avatar answered Nov 12 '22 03:11

Dipan Mehta


i have found that it's problem with android phone only, above 2.3 it's working fine

so build your apps with above android version 2.3

it will work sure for all android version above 2.3

like in AndroidManifest.xml file android:minSdkVersion should be more than 10,

<uses-sdk
    android:minSdkVersion="11"
    android:targetSdkVersion="17" />
like image 1
Siddhpura Amit Avatar answered Nov 12 '22 04:11

Siddhpura Amit