You are not logged in.

#1 2013-09-29 18:13:03

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Problem with rendering tamil fonts

Hello,
I tried every known method. But I can't be able to render these tamil fonts. But I know its possible (Because, I've seen some Gnome terminals rendering it correctly). Here is the problem, and solutions I tried. But i can't find the solution and the worst case, i can't even figure out the problem.

Here is what I am using:
Shell : bash 4.2
terminal : rxvt-unicode (patched)
Editor : Geany
Browser: Firefox.

Here is my problem:
I have set extra tamil fonts in Xresources and also installed GNU Unifont from aur (bdf-unifont). Also, I have several tamil fonts installed. The fonts are working properly in firefox, geany and conky. But in terminal and libreoffice, its like crap. Here are the screen shots.

In firefox, the font displayed in correct manner:
W4sWdeG.png

And also in conky (displayed perfectly - i actually indidcated the font name in conkyrc)
rCALsZq.png

In geany (also rendered correctly)
UTpxfex.png

In the uxrvt now,
With font as inconsolata in .Xresources and a tamil fallback font, the result is:
I3FFcmx.png

and when i run

urxvt -fn "xft:TSCu_SaiIndira:pixelsize=14,style=regular"

or, set the tamil font first in .Xresources URxvt.font, I get this(see the misplaced hook and dot)
upyBNKO.png

Why is this this different from the above terminal?

and here in libreoffice(also rendered incorrect - without the dot and hook)
5abQSEc.png

Here are my configs:
Xresources:

!urxvt configs-----------------------
URxvt.depth: 32
URxvt.background:rgba:0000/0000/1000/eee0

!URxvt*.transparent: true
! URxvt*.shading: 0 to 99 darkens, 101 to 200 lightens
!URxvt*.shading: 15
URxvt*.scrollBar: false
URxvt.font:xft:Inconsolata:size=10,xft:TSCu_SaiIndira:size=10,xft:TAU_1_ELANGO_Barathi:size=10
URxvt.foreground: #77e5e4
!TSCu_SaiIndira and ELANGO_Barathi are tamil fonts

bashrc:

[[ $- != *i* ]] && return

alias ls='ls --color=auto'
PS1='[\u@\h \W]\$ '

[ -n "$XTERM_VERSION" ] && transset-df -a >/dev/null

export LANG="en_GB.UTF-8"

Thanks.

Offline

#2 2013-09-30 00:53:23

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: Problem with rendering tamil fonts

Could you please paste in the exact text sample just as you usually type it?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2013-09-30 01:01:24

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Re: Problem with rendering tamil fonts

Hi bohoomil,
I don't get what you are asking. If you are asking to paste that tamil word, I didn't type it... I just copy pasted it from the browser to all other applications. By the way, I don't know how to type tamil characters (I mean I don't know the key mapings.. its somewhat difficult - 247 characters mapped onto the US keyboard)

Offline

#4 2013-09-30 01:40:42

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: Problem with rendering tamil fonts

I've assumed you speak/use Tamil, so you can share a text snippet that's causing problems. Is this mostly an aesthetic issue then? In any case, I'm soon going to upload a collection of fonts to my repo that render non-Latin scripts correctly (here is a Tamil bit: click), so you may want to try using them instead of (or next to) bdf-unifont. For URxvt you can use an additional font supporting a particular language, e.g.:

URxvt.font:xft:Envy Code R:style=Regular:pixelsize=13:hinting=False \
           xft:DotumChe:style=Regular:pixelsize=13 

This should help display a piece of non-Latin text correctly.


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2013-09-30 01:42:41

bernarcher
Forum Fellow
From: Germany
Registered: 2009-02-17
Posts: 2,281

Re: Problem with rendering tamil fonts

urxvt terminals are not suited to display these fonts, unfortunately. I never got it to work with Devanagri scripts. They just don't compose the characters correctly.

Last edited by bernarcher (2013-09-30 01:45:00)


To know or not to know ...
... the questions remain forever.

Offline

#6 2013-09-30 17:14:59

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Re: Problem with rendering tamil fonts

I've assumed you speak/use Tamil, so you can share a text snippet that's causing problems.

Yes , tamil is my native. What do you mean by text snippet that's causing problems? Everything is causing problems in the terminal as you can see. Also, not asthetic problem, as you can see, if the dots are misplaced, it is entirely different. Also, I am waiting for your update.

And also, someone, probably grawity or Earnestly warned me that urxvt su*ks at rendering unicode and also cannot gaurentee fallback font display. And one morething, I wanted to quote:

When I set the export LANG in .bashrc as "ta-IN" , All my GTK apps perfectly render tamil fonts (eg: GIMP, Pidgin, Geany) Perfect in the sense, their language itself is changed.. like displaying equivalent tamil word for everything you see(menus, options etc).

Offline

#7 2013-09-30 18:37:51

Jellicent
Member
From: Berlin
Registered: 2013-09-13
Posts: 189

Re: Problem with rendering tamil fonts

thinkanish wrote:

I've assumed you speak/use Tamil, so you can share a text snippet that's causing problems.

Yes , tamil is my native. What do you mean by text snippet that's causing problems? Everything is causing problems in the terminal as you can see. Also, not asthetic problem, as you can see, if the dots are misplaced, it is entirely different. Also, I am waiting for your update.

And also, someone, probably grawity or Earnestly warned me that urxvt su*ks at rendering unicode and also cannot gaurentee fallback font display. And one morething, I wanted to quote:

When I set the export LANG in .bashrc as "ta-IN" , All my GTK apps perfectly render tamil fonts (eg: GIMP, Pidgin, Geany) Perfect in the sense, their language itself is changed.. like displaying equivalent tamil word for everything you see(menus, options etc).

Have you tried using the other font bohoomil suggested? Just checking.

Offline

#8 2013-10-01 02:44:27

thinkanish
Member
Registered: 2012-08-12
Posts: 39

Re: Problem with rendering tamil fonts

Jellicent: No, its not working. As he suggested, I tried Envy Code R (although it doesnot support tamil i think), it does display korean characters fine. But even If I include tamil specific fonts, It can't render. I think it needs monospaced tamil fonts to render which are not available easily.

Offline

Board footer

Powered by FluxBB