Hello there,
It's good that i came across this mail. Even i am facing a similar problem. I 
think  earlier i have troubled Sven enough with my silly questions( DirectFb 
installation). Sorry for all that.

Now i have all the recent versions of gtk+-Dierectfb & pango-1.2.5 with 
fontconfig (working fine). Now i have to render some OpenType fonts on my 
gtk+ appln.
(To be specific i need to use indic fonts). I came across a package called 
IndLinux-Hindi.0.73, installing which will provide me all the locale and 
fonts and translation stuffs for the OpenType fonts i want to use.

Now my problem is : when i run simplest of calender example of gtk+, 
i could see all the required fonts in the listing of fonts, but that is not 
getting applied to the calender text. 

But let say, i set my LANG environment variable to other locales, if run the 
calender executable again, the default it self will be the language i have 
set using LANG. But i cannot change it at run time, rather i have to come 
back & change "LANG" again.

Now pls help me to change this locale & fonts for my gtk+ appln at run time.
Is there any link to guide me further? I expect  a helping hand at the 
earliest.

thank you very much,

regards,
Bheemesh.




On Monday 19 January 2004 10:54 am, Sven Neumann wrote:
> Hi,
>
> Selwyn Tang <[EMAIL PROTECTED]> writes:
> > My gtk+ dfb app uses pango for font rendering. I have installed
> > fontconfig and the default font path in fonts.conf is /usr/share/fonts.
> > Initially, I forgot to create that directory, and the app failed
> > complaining that it couldn't find any font.
> >
> > Then I created that directory, copied a few .ttf to
> > /usr/share/fonts/truetype, invoked ttmkfdir and mkfontdir to create
> > fonts.scale and fonts.dir.
>
> fontconfig doesn't need (or even use) fonts.scale and fonts.dir. It
> likes cache files though, so you should run fc-cache after installing
> fonts.
>
> > After that, my app run without any warning,
> > but the texts would not show. The font used was "arial 20" from pango.
>
> What versions of DirectFB and gtk+-directfb are you using? Which
> gfx-card do you use, what pixelformat do you render to? Do you use any
> special configuration in your directfbrc? Does rendering in software
> only mode change the behaviour?
>
>
> Sven


-- 
Info: To unsubscribe send a mail to [EMAIL PROTECTED] with 
"unsubscribe directfb-users" as subject.

Reply via email to