diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-01 08:49:00 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-05-01 08:49:00 +0000 |
commit | 56482725b69b69b58f5be6b36a9ee9cd30ebcc54 (patch) | |
tree | c2db44dde244755f937a139a49ccd68da598dca7 /amiga | |
parent | 11a028442758a0e4cfe065d0649f79ad5430a04a (diff) | |
download | netsurf-56482725b69b69b58f5be6b36a9ee9cd30ebcc54.tar.gz netsurf-56482725b69b69b58f5be6b36a9ee9cd30ebcc54.tar.bz2 |
If a designed font is defined but not available, error out
svn path=/trunk/netsurf/; revision=12265
Diffstat (limited to 'amiga')
-rw-r--r-- | amiga/font.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/amiga/font.c b/amiga/font.c index 0f2c3e7d9..1c517a517 100644 --- a/amiga/font.c +++ b/amiga/font.c @@ -404,6 +404,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL if(node->italic) { node = ami_font_open(node->italic); + if(!node) return NULL; } else { @@ -416,6 +417,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL if(node->bold) { node = ami_font_open(node->bold); + if(!node) return NULL; } else { @@ -428,6 +430,7 @@ struct OutlineFont *ami_open_outline_font(const plot_font_style_t *fstyle, BOOL if(node->bolditalic) { node = ami_font_open(node->bolditalic); + if(!node) return NULL; } else { @@ -580,6 +583,7 @@ void ami_init_fonts(void) void ami_close_fonts(void) { + LOG(("Cleaning up font cache")); FreeObjList(ami_font_list); ami_font_list = NULL; } |