object_type = g_type_register_static (PANGO_TYPE_FONT_MAP,
"PangoFBFontMap",
- &object_info);
+ &object_info,
+ 0);
}
return object_type;
{
fl = g_ptr_array_index(fbfm->all_descs, i);
- /* Can't use pango_font_description_compare() because it checks ->size as well */
+ /* Can't use pango_font_description_equal() because it checks ->size as well */
if(!g_strcasecmp(desc->family_name, fl->desc.family_name)
&& desc->style == fl->desc.style
&& desc->weight == fl->desc.weight
if(i >= fbfm->all_descs->len)
return NULL;
- retval = (PangoFBFont *)g_type_create_instance(PANGO_TYPE_FB_FONT);
+ retval = (PangoFBFont *)g_object_new (PANGO_TYPE_FB_FONT, NULL);
retval->desc = *desc;
retval->desc.family_name = g_strdup(desc->family_name);
};
int i;
- fontmap->all_fonts = g_hash_table_new(pango_font_description_hash, (GCompareFunc)pango_font_description_compare);
+ fontmap->all_fonts = g_hash_table_new(pango_font_description_hash, (GEqualFunc)pango_font_description_equal);
fontmap->all_descs = g_ptr_array_new();
for(i = 0; font_dirs[i]; i++)
list_fonts(fontmap, NULL, fontmap->all_descs, font_dirs[i]);
object_type = g_type_register_static (PANGO_TYPE_FONT,
"PangoFBFont",
- &object_info);
+ &object_info,
+ 0);
}
return object_type;
FT_GlyphSlot g;
PangoRectangle *my_logical_rect, *my_ink_rect;
FT_Face ftf;
+ gboolean free_buffer = FALSE;
ftf = fbf->ftf;
g_error("Glyph render failed");
renderme = &bgy->bitmap;
+ free_buffer = TRUE;
}
else
renderme = &g->bitmap;