[Fontconfig] (no subject)

Atul Mehrotra urs_buddy7 at yahoo.com
Thu Jul 17 05:21:54 PDT 2008

PS:; Sorry for sending reply only on your id. Adding reply to fontconfig mailing list too.

--- On Thu, 7/17/08, Atul Mehrotra <urs_buddy7 at yahoo.com> wrote:
From: Atul Mehrotra <urs_buddy7 at yahoo.com>
Subject: Re: [Fontconfig] (no subject)
To: "Keith Packard" <keithp at keithp.com>
Date: Thursday, July 17, 2008, 5:19 AM


Yes i am working with fontconfig-2.6.0 stable release .
I tried debugging fontconfig for the issue  & found that application gets stuck at  FT_Load_Glyph. Below is some backtrace of gdb where the application gtk-demo gets stuck.

#0  FT_Load_Glyph (face=0xad4c8, glyph_index=1, load_flags=523)
    at /home/sandbox/SEEDBUILD/source-root/freetype2/src/base/ftobjs.c:572
#1  0x405510c0 in FcFreeTypeCheckGlyph (face=0xad800, ucs4=1158213, glyph=1, 
    blanks=0x405d7164, advance=0xbeaceae0, using_strike=0)
    at fcfreetype.c:2490
#2  0x40551494 in FcFreeTypeCharSetAndSpacingForSize (face=0xad4c8, 
    blanks=0x0, spacing=0xff, strike_index=<value optimized out>)
    at fcfreetype.c:2627
#3  0x40551604 in
 IA__FcFreeTypeCharSetAndSpacing (face=0xad800, blanks=0x1, 
    spacing=0x101) at fcfreetype.c:2764
#4  0x40552e6c in IA__FcFreeTypeQueryFace (face=0xad4c8, 
    file=0x8 <Address 0x8 out of bounds>, id=65535, blanks=0x4)
    at fcfreetype.c:1644
#5  0x40553268 in IA__FcFreeTypeQuery (
    file=0xb1158 "/usr/local/share/fonts/monotype/gla_____.ttf", id=0, 
    blanks=0xa7ad0, count=0xbeacec34) at fcfreetype.c:1750
#6  0x40550990 in FcFileScanConfig (set=0xa1d40, dirs=0xa1cc8, 
    file=0xb1158 "/usr/local/share/fonts/monotype/gla_____.ttf", 
    config=0xa1bc0) at fcdir.c:61
#7  0x40550c78 in FcDirCacheScan (
    dir=0xa1d18 "/usr/local/share/fonts/monotype", config=0xa1bc0)
    at fcdir.c:222
#8  0x4054d00c in
 FcConfigAddDirList (config=0xa1bc0, set=FcSetSystem, 
    dirSet=0xa1c38) at fccfg.c:303
#9  0x4054d248 in IA__FcConfigBuildFonts (config=0xa1bc0) at fccfg.c:336
#10 0x40553998 in IA__FcInitLoadConfigAndFonts () at fcinit.c:106
#11 0x40553a58 in IA__FcInit () at fcinit.c:124
#12 0x4054c594 in IA__FcConfigGetCurrent () at fccfg.c:363
#13 0x4054cc74 in IA__FcConfigSubstituteWithPat (config=0x0, p=0x1, 
    p_pat=0x1, kind=FcMatchPattern) at fccfg.c:1308
#14 0x40443f44 in pango_cairo_fc_font_map_context_substitute (
    fcfontmap=<value optimized out>, context=0x8eaf0, pattern=0x9f408)
    at pangocairo-fcfontmap.c:87
#15 0x404544b0 in pango_fc_default_substitute (fontmap=0xad800, context=0x1, 
    pattern=0x404544b0) at pangofc-fontmap.c:978
#16 0x40456a24 in pango_fc_font_map_load_fontset (fontmap=0x4052d090, 
 context=0x0, desc=0x1, language=0x1) at pangofc-fontmap.c:1069
#17 0x404924bc in pango_font_map_load_fontset (fontmap=0x445a8, 
    context=0x8eaf0, desc=0x94700, language=0x9f4c0) at pango-fontmap.c:107
#18 0x40456dc4 in pango_fc_font_map_load_font (fontmap=0x445a8, 
    context=0x8eaf0, description=0x94700) at pangofc-fontmap.c:1152
#19 0x40492568 in pango_font_map_load_font (fontmap=0x445a8, context=0x8eaf0, 
    desc=0x94700) at pango-fontmap.c:64
#20 0x40496714 in pango_layout_get_empty_extents_at_index (layout=0x85878, 
    index=0, logical_rect=0xbeaceffc) at pango-layout.c:4356
#21 0x40496a80 in pango_layout_line_get_extents (line=0x940c0, 
    ink_rect=0x940dc, logical_rect=0xbeaceffc) at pango-layout.c:4396
#22 0x40496b90 in get_line_extents_layout_coords (layout=0x85878, 
    line=0x940c0, layout_width=-1, y_offset=0,
    line_ink_layout=0x0, line_logical_layout=0xbeacf06c)
---Type <return> to continue, or q <return> to quit--- 
    at pango-layout.c:2358
#23 0x4049aaa8 in pango_layout_get_extents_internal (layout=0x85878, 
    ink_rect=0x0, logical_rect=0xbeacf1c0, line_extents=0x0)
    at pango-layout.c:2469
#24 0x402b6f8c in gtk_text_layout_get_line_display ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#25 0x402ba760 in gtk_text_layout_real_wrap ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#26 0x402b55bc in gtk_text_layout_wrap ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#27 0x4029a0d4 in _gtk_text_btree_validate_line ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#28 0x402b9578 in gtk_text_layout_validate_yrange ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
 0x402c62e0 in gtk_text_view_validate_onscreen ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#30 0x402c6390 in gtk_text_view_value_changed ()
   from /usr/local/lib/libgtk-x11-2.0.so.0
#31 0x40206870 in _gtk_marshal_VOID__OBJECT_OBJECT ()
   from /usr/local/lib/libgtk-x11-2.0.so.0

Any guidance where should i look in font config code to debug / solve the issue.

-Atul Mehrotra

--- On Wed, 7/16/08, Keith Packard <keithp at keithp.com> wrote:
From: Keith Packard <keithp at keithp.com>
Subject: Re: [Fontconfig] (no subject)
To: "Atul Mehrotra" <urs_buddy7 at yahoo.com>
Cc: keithp at keithp.com, fontconfig at lists.freedesktop.org
Date: Wednesday, July 16, 2008, 12:14 PM

On Wed, 2008-07-16 at 00:42 -0700, Atul Mehrotra wrote:

> Is there any way
 by which i can make font config to stop invalidating
> those cache files & keep on using them.

Version 2.6 is supposed to work correctly in this case, are you using

keith.packard at intel.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/fontconfig/attachments/20080717/3e29031a/attachment.html 

More information about the Fontconfig mailing list