1 Index: navit/navit/font/freetype/font_freetype.c
2 ===================================================================
3 --- navit.orig/navit/font/freetype/font_freetype.c 2010-01-28 22:50:40.680020207 +0100
4 +++ navit/navit/font/freetype/font_freetype.c 2010-01-28 22:51:12.632935443 +0100
12 +#define USE_CACHING 1
17 if (glyph_bbox.yMax > bbox.yMax)
18 bbox.yMax = glyph_bbox.yMax;
19 p = g_utf8_next_char(p);
24 FTC_Node_Unref(anode, manager);
26 - FT_Done_Glyph(glyph);
29 if (bbox.xMin > bbox.xMax) {
32 curr->dx = glyph->advance.x >> 10;
33 curr->dy = -glyph->advance.y >> 10;
38 FTC_Node_Unref(anode, manager);
40 p = g_utf8_next_char(p);
43 font_destroy(struct graphics_font_priv *font)
46 + FT_Done_Face(((struct font_freetype_font*) font)->face);
49 /* TODO: free font->face */
54 char *fontfile,*fontindex;
57 return FT_Err_Invalid_Handle;
59 fontfile=g_strdup((char *)face_id);
60 dbg(1,"fontfile=%s\n", fontfile);
61 fontindex=strrchr(fontfile,'/');
64 + dbg(0,"Error while getting the fontindex");
66 return FT_Err_Invalid_Handle;
70 dbg(1,"new face %s %d\n", fontfile, atoi(fontindex));
71 ret = FT_New_Face( library, fontfile, atoi(fontindex), aface );
73 - dbg(0,"Error while creating freetype face: %d\n", ret);
75 + dbg(0,"Error while creating freetype face: %d\n", ret);
80 if((ret = FT_Select_Charmap(*aface, FT_ENCODING_UNICODE))) {
81 - dbg(0,"Error while creating freetype face: %d\n", ret);
82 + dbg(0,"Error while creating freetype face: %d\n", ret);