forked from old/legacy-imlib2
dont be so anal abotu ewncodings... if no apple or windows encoding is there
just use encoding charmap 0 :) SVN revision: 1873
This commit is contained in:
parent
eab75dc3d0
commit
a06e27d641
10
src/font.c
10
src/font.c
|
@ -288,15 +288,7 @@ __imlib_load_font(char *fontname)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (i == n)
|
if (i == n)
|
||||||
{
|
TT_Get_CharMap(f->face, 0, &char_map);
|
||||||
no_cmap = 1;
|
|
||||||
num_glyphs = f->properties.num_Glyphs;
|
|
||||||
TT_Done_Instance(f->instance);
|
|
||||||
TT_Close_Face(f->face);
|
|
||||||
free(f->name);
|
|
||||||
free(f);
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
f->num_glyph = 256;
|
f->num_glyph = 256;
|
||||||
f->glyphs = (TT_Glyph *)malloc(f->num_glyph * sizeof(TT_Glyph));
|
f->glyphs = (TT_Glyph *)malloc(f->num_glyph * sizeof(TT_Glyph));
|
||||||
memset(f->glyphs, 0, f->num_glyph * sizeof(TT_Glyph));
|
memset(f->glyphs, 0, f->num_glyph * sizeof(TT_Glyph));
|
||||||
|
|
Loading…
Reference in New Issue