navit  0.5.1-trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Groups
font_freetype.h
Go to the documentation of this file.
1 /*
2  * Navit, a modular navigation system.
3  * Copyright (C) 2005-2011 Navit Team
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License
7  * version 2 as published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12  * GNU General Public License for more details.
13  *
14  * You should have received a copy of the GNU General Public License
15  * along with this program; if not, write to the
16  * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17  * Boston, MA 02110-1301, USA.
18  */
19 
32 struct font_freetype_font;
33 struct font_freetype_glyph;
34 
37  void (*destroy)(void);
50  struct font_freetype_font *(*font_new) (struct graphics_priv * gr,
51  struct
53  meth, char *font, int size,
54  int flags);
55  void (*get_text_bbox) (struct graphics_priv * gr,
56  struct font_freetype_font * font,
57  char *text, int dx, int dy,
58  struct point * ret, int estimate);
59  struct font_freetype_text *(*text_new) (char *text,
60  struct font_freetype_font *
61  font, int dx, int dy);
62  void (*text_destroy) (struct font_freetype_text * text);
78  int (*get_shadow) (struct font_freetype_glyph * glyph,
79  unsigned char *data, int stride, struct color *fg, struct color *tr);
95  int (*get_glyph) (struct font_freetype_glyph * glyph,
96  unsigned char *data, int stride,
97  struct color * fg, struct color * bg, struct color *tr);
98 };
99 
101  int x, y, w, h, dx, dy;
102  unsigned char *pixmap;
103 };
104 
108 };
Definition: font_freetype.h:105
Definition: font_freetype.h:100
int size
Definition: garmin_img.c:131
Definition: color.h:23
int(* get_shadow)(struct font_freetype_glyph *glyph, unsigned char *data, int stride, struct color *fg, struct color *tr)
Get glyph "shadow", a glyph bitmap to be used as background.
Definition: font_freetype.h:78
int x
Definition: font_freetype.h:101
Definition: font_freetype.h:36
int w
Definition: font_freetype.h:101
int y
Definition: font_freetype.h:101
int dy
Definition: font_freetype.h:101
Definition: graphics.h:157
Definition: graphics_android.c:37
char data
Definition: garmin_img.c:354
int dx
Definition: font_freetype.h:101
void(* text_destroy)(struct font_freetype_text *text)
Definition: font_freetype.h:62
Definition: point.h:23
void(* destroy)(void)
Definition: font_freetype.h:37
int glyph_count
Definition: font_freetype.h:106
struct font_freetype_glyph * glyph[0]
Definition: font_freetype.h:107
typedef int(WINAPI *FP_SetStretchBltMode)(HDC dc
Definition: font_freetype.c:59
int(* get_glyph)(struct font_freetype_glyph *glyph, unsigned char *data, int stride, struct color *fg, struct color *bg, struct color *tr)
Get a glyph bitmap.
Definition: font_freetype.h:95
void(* get_text_bbox)(struct graphics_priv *gr, struct font_freetype_font *font, char *text, int dx, int dy, struct point *ret, int estimate)
Definition: font_freetype.h:55
int h
Definition: font_freetype.h:101
flags
Definition: gui_internal.h:26
unsigned char * pixmap
Definition: font_freetype.h:102