List Info

Thread: Indic script support in cross-compilation environment




Indic script support in cross-compilation environment
user name
2007-09-11 09:07:32
Hi,

I have compiled cairo and pango with X-libraries disabled and DirectFB enabled. I am using gtk+ with DirectFB. I want to enable devanagri fonts. I have written a look-up table, in which a certain keypress gives a devnagari character, and so on. However, when I type in the gtk+ text area in the application, I get boxes. Not the empty ones; they have four small symbols in them.

I copied the requisite devanagari fonts(Akshar.ttf,  samanata.ttf, AksharYogini.ttf, RKJanaHindi.TTF, kalimati.ttf, DVBOTSRN.ttf, chandas1-2.ttf, nakula.ttf, Gargi_1.7.ttf, sahadeva.ttf) into /usr/local/share/fonts and did a fc-cache. The problem still persists.  I think this should have sufficed. Is anything else needed?

Help, please.



Cheers,
Harshvardhan

Re: Indic script support in cross-compilation environment
country flaguser name
Canada
2007-09-11 13:31:08
On Tue, 2007-09-11 at 19:37 +0530, Harsh Ketkar wrote:
> Hi,
> 
> I have compiled cairo and pango with X-libraries
disabled and DirectFB
> enabled. I am using gtk+ with DirectFB. I want to
enable devanagri
> fonts. I have written a look-up table, in which a
certain keypress
> gives a devnagari character, and so on. However, when I
type in the
> gtk+ text area in the application, I get boxes. Not the
empty ones;
> they have four small symbols in them. 
> 
> I copied the requisite devanagari fonts(Akshar.ttf, 
samanata.ttf,
> AksharYogini.ttf, RKJanaHindi.TTF, kalimati.ttf,
DVBOTSRN.ttf,
> chandas1-2.ttf, nakula.ttf, Gargi_1.7.ttf,
sahadeva.ttf)
> into /usr/local/share/fonts and did a fc-cache. The
problem still
> persists.  I think this should have sufficed. Is
anything else
> needed? 

What if you put them in /usr/share/fonts or ~/.fonts/ ?

> Help, please.
> 
> 
> 
> Cheers,
> Harshvardhan 
> 
> _______________________________________________
> gtk-i18n-list mailing list
> gtk-i18n-listgnome.org
> 
http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase
a little
 Temporary Safety, deserve neither Liberty nor
Safety."
        -- Benjamin Franklin, 1759



_______________________________________________
gtk-i18n-list mailing list
gtk-i18n-listgnome.org

http://mail.gnome.org/mailman/listinfo/gtk-i18n-list

Re: Indic script support in cross-compilation environment
user name
2007-09-12 02:40:38


On 12/09/2007, Behdad Esfahbod < behdadbehdad.org">behdadbehdad.org> wrote:
>>What if you put them in /usr/share/fonts or ~/.fonts/ ?

Hi,

I deleted the /usr/local/share/fonts folder after copying their contents to /usr/share/fonts. On running the application, I got the following error:

No fonts found; this probably means that the fontconfig
library is not correctly configured. You may need to
edit the fonts.conf configuration file. More information
about fontconfig can be found in the fontconfig(3) manual
page and on http://fontconfig.org

I didn't get the message on doing the same after moving the fonts to ~/.fonts and doing a fc-cache, however. The devanagari characters still weren't rendered.

Also, there is no fonts.conf file in the cross-compiling environment. The fonts are detected only when kept in /usr/local/share/fonts or ~/.fonts.

I kept the indic fonts alone and then I ran the application. Still, only the devanagri characters are not rendered. The English characters are rendered properly(albeit in a different font, since I have removed the non-indic fonts).

I used the devanagari characters provided by the Character Map in Ubuntu(Applications >Accessories >Character Map). Are they responsible for this?

Cheers,
Harshvardhan


Re: Indic script support in cross-compilation environment
user name
2007-09-12 04:17:53


On 12/09/2007, Girish < girish.ageodesic.com">girish.ageodesic.com> wrote:
Harsh Ketkar wrote:
>;
>
> On 12/09/2007, *Behdad Esfahbod* < behdadbehdad.org">behdadbehdad.org
> <mailto: behdadbehdad.org">behdadbehdad.org>> wrote:
&gt;
>&nbsp; &nbsp;  >>What if you put them in /usr/share/fonts or ~/.fonts/ ?
>
>;
> Hi,
>
&gt; I deleted the /usr/local/share/fonts folder after copying their
> contents to /usr/share/fonts. On running the application, I got the
> following error:
>;
> No fonts found; this probably means that the fontconfig
> library is not correctly configured. You may need to
> edit the fonts.conf configuration file. More information
> about fontconfig can be found in the fontconfig(3) manual
>; page and on http://fontconfig.org
>
> I didn't get the message on doing the same after moving the fonts to
> ~/.fonts and doing a fc-cache, however. The devanagari characters
> still weren't rendered.
>
> Also, there is no fonts.conf file in the cross-compiling environment.
> The fonts are detected only when kept in /usr/local/share/fonts or
> ~/.fonts.
>
> I kept the indic fonts alone and then I ran the application. Still,
>; only the devanagri characters are not rendered. The English characters
> are rendered properly(albeit in a different font, since I have removed
&gt; the non-indic fonts).
&gt;
> I used the devanagari characters provided by the Character Map in
> Ubuntu(Applications >Accessories >Character Map). Are they responsible
> for this?
>
> Cheers,
&gt; Harshvardhan
>
>;
> ------------------------------------------------------------------------
>;
> _______________________________________________
> gtk-i18n-list mailing list
> gtk-i18n-listgnome.org">gtk-i18n-listgnome.org
> http://mail.gnome.org/mailman/listinfo/gtk-i18n-list
>
Could you paste the out put of fc-list

Sure. Here it is:
Comic Sans MS Mäori,Comic Sans MS M‰ori:style=Regular
Bitstream Vera Sans Mono:style=Bold
Comic Sans MS:style=Regular,Normal,obyčejné,Standard,Κανονικά,Normaali,Normál,Normale,Standaard,Normalny,Обычный,Normálne,Navadno,Arrunta
Akshar Unicode:style=Regular
Bitstream Vera Sans:style=Oblique
Samanata:style=Regular
Aksharyogini:style=Normal
Bitstream Vera Sans:style=Roman
gargi:style=Medium
augie:style=Regular
Nakula:style=Regular
Kalimati,नालमाट:style=Regular,कलिमटी
Bitstream Vera Sans Mono:style=Oblique
Comic Sans MS:style=Bold,Negreta,tučné,fed,Fett,Έντονα,Negrita,Lihavoitu,Gras,Félkövér,Grassetto,Vet,Halvfet,Pogrubiony,Negrito,Плужирный,Fet,Kalın,Krepko,Lodia
Bitstream Vera Sans:style=Bold
Chandas:style=Regular
Bitstream Vera Serif:style=Roman
Bitstream Vera Sans Mono:style=Bold Oblique
Bitstream Vera Sans:style=Bold Oblique
Bitstream Vera Sans Mono:style=Roman
DVBOTSurekh:style=Normal
Bitstream Vera Serif:style=Bold
Sahadeva:style=Regular
JanaHindi:style=Sans

&nbsp;

regards
Girish

--

----------------------------------------------------------------------
Girish A J
Software-Engineer,&nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;   ; Ph: (80) 2361 8184-86&nbsp;  Ext 135
PicoPeta Simputers Pvt Ltd.   ; &nbsp; &nbsp; (A subsidiary of Geodesic Information Systems Ltd)
146 5th Cross, RMV Extension,  ; &nbsp; &nbsp; &nbsp; &nbsp; Fax:(80) 2361 7568
Bangalore - 560 080.
URL&nbsp; http://www.Geodesic.com
--------------------------------------------------------------------------



Cheers,
Harshvardhan
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )