Re: Pango-WARNING failed to choose a font



Thanks.

fc-match returns
Vera.ttf: "Bitstream Vera Sans" "Roman"

Apparently pango does not like this,

(gtk-demo:3274): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'

(gtk-demo:3274): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'

**** so, how do I get fc-match to return something else? Or what kind of font I need to install?

--- On Tue, 9/21/10, Behdad Esfahbod <behdad behdad org> wrote:

From: Behdad Esfahbod <behdad behdad org>
Subject: Re: Pango-WARNING failed to choose a font
To: "William Mok" <wmok6600 yahoo com>
Cc: gtk-i18n-list gnome org
Date: Tuesday, September 21, 2010, 10:35 AM

On 09/21/10 13:19, William Mok wrote:

> I built a debug version of Pango, GTK+ and tried to set a breakpoint at
> the function "pango_x_font_map_read_aliases" in pangox-fontmap.c.
> However, when I start the application such as "gtk-demo", the breakpoint
> never got hit. Does that mean pango is ignoring the pangox.aliases file?

Correct.

> *****The thing is that I don't know how pango works, where pango will
> search for the fonts? Until I understand the related files and
> configuration, I am not sure how I can get it to work.

Does running 'fc-match' return anything?  That's the font pango will find and use.

behdad

> Please help. Thanks.
>
>
> --- On *Mon, 9/20/10, Behdad Esfahbod /<behdad behdad org>/* wrote:
>
>
>     From: Behdad Esfahbod <behdad behdad org>
>     Subject: Re: Pango-WARNING failed to choose a font
>     To: "William Mok" <wmok6600 yahoo com>
>     Cc: gtk-i18n-list gnome org
>     Date: Monday, September 20, 2010, 11:59 AM
>
>     On 09/19/10 13:14, William Mok wrote:
>     > Do I need to install any fonts?
>
>     Yes.  Install any font package.
>
>     behdad
>
>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]