示例#1
0
int il_string_catchars(il_string *self, const char *chars)
{
    il_string *str = il_string_new(chars, strlen(chars)+1);
    int res = il_string_cat(self, str);
    il_string_unref(str);
    return res;
}
示例#2
0
static void text_des(void *obj)
{
    ilG_gui_textlayout *self = obj;
    il_unref(self->font);
    free(self->lang);
    free(self->script);
    il_string_unref(self->source);

    hb_buffer_destroy(self->buf);
    hb_face_destroy(self->hb_ft_face);
    hb_font_destroy(self->hb_ft_font);

    cairo_destroy(self->cr);
    cairo_surface_destroy(self->surface);
    cairo_font_face_destroy(self->cairo_ft_face);

    FT_Done_Face(self->ft_face);
}