Re: loading X fonts (ewww!)



On Thu, 8 Jul 2004, Luca Padovani wrote:

> Gdk-CRITICAL **: file gdkdrawable-x11.c: line 798 (gdk_x11_draw_glyphs):
> assertion `PANGO_XFT_IS_FONT (font)' failed
> 	pango_font_map_load_font

Are you loading the font from a FT Fontmap?
How are you getting the fontmap?
Are you using pango_ft2_font_map_for_display?
I seem to recall getting a similiar problem where I tried to use one of 
the FT font methods using the default fontmap from a PangoLayout.
Fixed it by using pango_ft2_font_map_for_display() to get a valid fontmap




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