Thanks. Pango ignores pangox.aliases, probably pangox.aliases is a legacy thing. I tried pango-querymodules, it doesn't work. -------------- I figured out a way to solve the problem, it is not too hard. I figured out why pango cannot find the font. In pango-context.c, there is a function called pango_context_init. The line "pango_font_description_set_family_static (context->font_desc, "serif");" sets the font family but it is not setting to something that is installed on my system. Using the command ' fc-list : family |grep -i serif', I found out that I have the following serif families: DejaVu LGC Serif FreeSerif Bitstream Vera Serif Microsoft Sans Serif Liberation Serif Luxi Serif DejaVu Serif,DejaVu LGC Serif Condensed ---------- So, I just need to modify the line to point to the exact family name. For example, if I want to use FreeSerif which is installed on my system, then modify the line: pango_font_description_set_family_static (context->font_desc, "FreeSerif"); ----------------------- static void pango_context_init (PangoContext *context) { context->base_dir = PANGO_DIRECTION_WEAK_LTR; context->resolved_gravity = context->base_gravity = PANGO_GRAVITY_SOUTH; context->gravity_hint = PANGO_GRAVITY_HINT_NATURAL; context->set_language = NULL; context->language = pango_language_get_default (); context->font_map = NULL; context->font_desc = pango_font_description_new (); /* pango_font_description_set_family_static (context->font_desc, "serif"); */ pango_font_description_set_family_static (context->font_desc, "FreeSerif"); pango_font_description_set_style (context->font_desc, PANGO_STYLE_NORMAL); pango_font_description_set_variant (context->font_desc, PANGO_VARIANT_NORMAL); pango_font_description_set_weight (context->font_desc, PANGO_WEIGHT_NORMAL); pango_font_description_set_stretch (context->font_desc, PANGO_STRETCH_NORMAL); pango_font_description_set_size (context->font_desc, 12 * PANGO_SCALE); } ---------------- Recompile pango and probably any libraries or applications that have dependencies on pango and the font loading problem will be resolved. ------------- --- On Sat, 10/9/10, Sid Kapoor <sidkapoor2000 gmail com> wrote:
|