diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-07 19:41:50 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-07 19:41:50 +0000 |
commit | e81c580b6202f51dea09ed95f7b07f942f5be98a (patch) | |
tree | 22b745e41be8bbf342fc4c94dd5e86f8a2b87e1b /navit/osd.c | |
parent | da7b00a9a76bd4a5ff64b40a95e713304f407117 (diff) | |
download | navit-svn-e81c580b6202f51dea09ed95f7b07f942f5be98a.tar.gz |
Add:Core:Possibility to specify font name for OSDs
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3877 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/osd.c')
-rw-r--r-- | navit/osd.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/navit/osd.c b/navit/osd.c index 051b4e4d..40c56a60 100644 --- a/navit/osd.c +++ b/navit/osd.c @@ -247,6 +247,9 @@ osd_set_std_attr(struct attr **attrs, struct osd_item *item, int flags) attr=attr_search(attrs, NULL, attr_accesskey); if (attr) item->accesskey = g_strdup(attr->u.str); + attr=attr_search(attrs, NULL, attr_font); + if (attr) + item->font_name = g_strdup(attr->u.str); } void @@ -296,7 +299,7 @@ osd_set_std_graphic(struct navit *nav, struct osd_item *item, struct osd_priv *p graphics_gc_set_foreground(item->graphic_fg_white, &item->color_white); if (item->flags & 2) { - item->font = graphics_font_new(item->gr, item->font_size, 1); + item->font = graphics_named_font_new(item->gr, item->font_name, item->font_size, 1); item->graphic_fg_text = graphics_gc_new(item->gr); graphics_gc_set_foreground(item->graphic_fg_text, &item->text_color); } |